Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in Using a Comparator

 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



The above code sorting is based on Customer FirstName .

How can i sort based on employee Age . Please help
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://faq.javaranch.com/java/SearchFirst
http://faq.javaranch.com/java/ShowSomeEffort

I googled for java Comparator example and the very first hit had a nice example.
 
PavanPL KalyanK
Ranch Hand
Posts: 212
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic