File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Collection Sort Method working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Collection Sort Method working" Watch "Collection Sort Method working" New topic
Author

Collection Sort Method working

Ajay P Tarachand
Greenhorn

Joined: Apr 27, 2008
Posts: 2
How sort() method in java collections internally works or sort using compare method when passing comparator object.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10535
    
    9

You can see it in action.
Your JDK installation directory will have a src.zip which contains the source code for the java library classes


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
Consider Paul's rocket mass heater.
 
subject: Collection Sort Method working