how to print all things in an array code example Example: how to print an array in java System.out.println(Arrays.toString(arr));