Java Program to Sort List of Strings
Here is the Java program to sort list of strings. This program uses compareTo() method to compare the strings and finally uses bubble sort technique to sort them. compareTo() method compares two strings and return an integer value. The returned integer value is interpreted as show below. Less than zero: first string is less than …