java tutorial - How to sort string array in Java - java programming - learn java - java basics - java for beginners
Learn java - java tutorial - Sort string array in Java - java examples - java programs
Sort String Array in Java :
- In Arrays, “Array.sort” is a static method and then it sorts the specified array of objects into ascending order, along with the {Comparable natural ordering} of its elements.
- One this to note here is, by default Arrays.sort method sorts the Strings in case sensitive manner. To sort a array of strings regardless of case, make use of these methods Arrays.sort(String[] strArray, String.CASE_INSENSITIVE_ORDER) as a substitute.