Skip to content

Instantly share code, notes, and snippets.

String[] list = {"1", "2", "3", "4", "5"};
for (String value : list) {
System.out.println(value);
}
String[] list = {"1", "2", "3", "4", "5"};
Arrays.stream(list).forEachOrdered(System.out::println);