Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Beginning Java and the fly likes sort an arraylist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

sort an arraylist

fab etore

Joined: Jul 01, 2002
Posts: 9
i would like to know, how can i sort an arraylist.
My arraylist is composed of object with 3 attributes. And i wan't to sort this arraylist by one of this attribute.
I don't know if i have to cast my arraylist in an other , and in which one.
Thanks a lot.
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1873
hi fab
please have a look at my reply for the same question you posted on "intermediate" forum....
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Let's continue this conversation in the intermediate forum. In the future, please don't post the same question in multiple forums. It makes following a conversation difficult.
I'm closing this thread...

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Have you tried LearnNowOnline?
subject: sort an arraylist