String[] myArray = {"JavaFX", "HBase", "OpenCV", "Java", "Hadoop","Neo4j"}; Arrays.sort(myArray); System.out.println(Arrays.toString(myArray));