var list = new ArrayList<String>(){{ add("tanaka"); add("Tomita"); add("ito"); add("kenmoto"); }}; list.forEach(System.out::println);
tanaka Tomita ito kenmoto
String[] names = {"tanaka", "Tomita", "ito", "Kenmoto"}; Arrays.sort(names, String::compareToIgnoreCase); System.out.println(Arrays.toString(names));
[ito, Kenmoto, tanaka, Tomita]