This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes What is the difference beteween Collections.sort and Arrays.sort Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "What is the difference beteween Collections.sort and Arrays.sort" Watch "What is the difference beteween Collections.sort and Arrays.sort" New topic
Author

What is the difference beteween Collections.sort and Arrays.sort

ram gaurav
Ranch Hand

Joined: Mar 29, 2006
Posts: 208
What is the difference beteween Collections.sort and Arrays.sort

Thanks
Gaurav
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

Collections.sort works on Collection instances, whereas Arrays.sort works on java arrays. Have a look at the respective classes in the API and you'll get the difference.


[My Blog]
All roads lead to JavaRanch
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

This is not a servlet question, moving to Java in General (beginner)

Dave
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: What is the difference beteween Collections.sort and Arrays.sort
 
Similar Threads
Difference beteween interrupted() and isInterrupted()
Difference beteween HashSet and LinkedHashSet.
Difference beteween notify and notifyAll.
Differences beteween ArrayList and Vector.
Difference beteween two dates