how to print an integer from an array of integers in java code example Example: java print array System.out.println(Arrays.toString(arr));