arrays.sort sort Strings java code example
Example 1: sort a string array java
String[] myArray = {"JavaFX", "HBase", "OpenCV", "Java", "Hadoop","Neo4j"};
Arrays.sort(myArray);
System.out.println(Arrays.toString(myArray));
Example 2: java sort method
Arrays.sort();//this method is an inbuild function in java
//to sort the array