sorting list in acending order

Can anyone tell how to sort List in ascending order
[58 byte] By [dove17a] at [2007-11-26 17:05:11]
# 1
If you always want to have a sorted list then use SortedSet http://java.sun.com/j2se/1.5.0/docs/api/java/util/SortedSet.html. Search the forums for "sort".
beradriana at 2007-7-8 23:32:57 > top of Java-index,Other Topics,Algorithms...
# 2
See Collections.sort(). http://java.sun.com/javase/6/docs/api/java/util/Collections.html
dubwaia at 2007-7-8 23:32:57 > top of Java-index,Other Topics,Algorithms...