File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there any sorting method in Java

 
Parshuram Walunjkar
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Is there any sorting method in Java?
Regards from
parshuram Walunjkar
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Collections.sort(List) can be used to sort the components of a List.
 
Michael Matola
whippersnapper
Ranch Hand
Posts: 1797
4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And similarly there's Arrays.sort() (variously overloaded) for arrays.
(If it's an array of Objects you're sorting, you'll need to be aware of how the Comparable interface works.)
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic