java output the whole array

ht‮t‬ps://www.lautturi.com
java output the whole array
int[] arr = new int[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 0};
      
for(int i = 0; i < arr.length; i++) {
   System.out.println(arr[i]);
}

// OR
System.out.println(Arrays.toString(arr));
Created Time:2017-10-03 14:23:33  Author:lautturi