I have a program which has the user inputs a list of names. I have a switch case going to a function which I would like to have the names print off in alphabetical order.
You can just use Arrays#sort(), it's working perfectly. See this example :
Arrays#sort()
String [] a = {"English","German","Italian","Korean","Blablablabla.."}; //before sort for(int i = 0;i