Copyright © 2008-2018, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.
Date: 2017nov24 Language: Java Q. Java: How can I do a case-insensitive sort of ArrayList<String> ? A.ArrayList<String> myArray = new ArrayList<>(); ... Collections.sort(myArray, String.CASE_INSENSITIVE_ORDER); // Case-insensitive sortOrCollections.sort(myArray, Collator.getInstance());
Add a commentSign in to add a comment