how to print the arry and the number element in java code example Example: java print array System.out.println(Arrays.toString(arr));