O'Reilly logo
  • Tansu Dasli thinks this is interesting:

// output each array element's value

From

Cover of Java® 9 for Programmers, Fourth Edition

Note

IntStream.range(1, frequency.length).forEach(face -> System.out.printf("%4d%10d%n", face, frequency[face]));