public class SortStringIgnoreCase {
  public static void main(String[] args) {
    java.util.List<String> cities = java.util.Arrays.asList
      ("Atlanta", "Savannah", "nowy Jork", "dallas");
    cities.sort((s1, s2) -> s1.compareToIgnoreCase(s2));

    for (String s: cities) {
      System.out.print(s + " ");
    }
  }
}