News

arr[i]=arr[j];...just this won't work, its not python // // int a[]=arr;//When you assign a = arr, you don’t create a new array; you only create a new reference to the same array.
The first example display two ways of printing results of Array Prior Java 8 and Java 8. The second example shows the way to print Array in Reverse.