how to print the values of string array in java code example Example: java print array System.out.println(Arrays.toString(arr));