aspose file tools*
The moose likes Beginning Java and the fly likes diff between java.util.comparator and java.lang.comparable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "diff between java.util.comparator and java.lang.comparable" Watch "diff between java.util.comparator and java.lang.comparable" New topic
Author

diff between java.util.comparator and java.lang.comparable

sunitha reghu
Ranch Hand

Joined: Dec 12, 2002
Posts: 937
can anybody give an explanation between java.lang.Comparable and java.util.Comparator
Divya Venkatesh
Greenhorn

Joined: Nov 05, 2002
Posts: 28
U may use Vectors.They are the best way to store dynamic sets of data.Mnipulating them is also very simple.


Divya
Divya Venkatesh
Greenhorn

Joined: Nov 05, 2002
Posts: 28
Im sorry abt this.I replied to the wrong Query.
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
See these previous discussions:
http://www.coderanch.com/t/367795/java/java/Comparable-Comparator-interfaces
http://www.coderanch.com/t/368468/java/java/Why-interfaces-Comparable-Comparator
http://www.coderanch.com/t/370349/java/java/Sorting


"I'm not back." - Bill Harding, Twister
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
Originally posted by Divya Venkatesh:
Im sorry abt this.I replied to the wrong Query.

I almost did the same thing. This page earlier linked to a thread called "Dynamic Array Conversion".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: diff between java.util.comparator and java.lang.comparable
 
Similar Threads
Regarding collections
diff b/w compare() and compareTo()
Sorting objects in an ArrayList
What is the diff between Comparator and Comparable
how to compare elements of List