• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can we sort the Items in java.awt.List

 
Sarath Mohan
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ranchers
I have List object in which i am storing a lot of names.
I want to display these names in alphabetical order.
Any clue?
Thanks
Binu
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try Collections.sort(myList)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic