my dog learned polymorphism*
The moose likes Beginning Java and the fly likes Comparable and Comparater Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Comparable and Comparater" Watch "Comparable and Comparater" New topic

Comparable and Comparater

deepak carter
Ranch Hand

Joined: Feb 19, 2011
Posts: 165

can anyone please help me in comparable and comparater. I am unable to understand .An example would help a lot
Jeff Verdegan

Joined: Jan 03, 2004
Posts: 6109

What did you not understand?

Did you try googling for something like java comparable tutorial or java comparable example? There's plenty of introductory material out there, so there's no point in somebody here just repeating it all without knowing what you tried and where you got stuck.

If you SearchFirst,(⇐clik), ShowSomeEffort,(⇐click) and TellTheDetails(⇐click) then somebody will be happy to help you.
deepak carter
Ranch Hand

Joined: Feb 19, 2011
Posts: 165
got the answer

subject: Comparable and Comparater
Similar Threads
Looping through a set of data
Overloading compareTo(), compiler error?
I m still not understanding COMPARABLE Interface
Comparator and comparable Inteface
Generics and method compareTo giving me a warning