Thomas Shera
3
Q:

java sort list alphabetically

Assuming that those are Strings, use the convenient static method sort…

 java.util.Collections.sort(listOfCountryNames)
0

New to Communities?

Join the community