This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Java in General and the fly likes Doubt in Using a Comparator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Doubt in Using a Comparator " Watch "Doubt in Using a Comparator " New topic
Author

Doubt in Using a Comparator

RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528



The above code sorting is based on Customer FirstName .

How can i sort based on employee Age . Please help

If you want something you never had do something which you had never done
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10491
    
    9

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.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
PavanPL KalyanK
Ranch Hand

Joined: Feb 28, 2009
Posts: 212
hh
 
Don't get me started about those stupid light bulbs.
 
subject: Doubt in Using a Comparator