jQuery in Action, 3rd edition
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
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]
I agree. Here's the link: http://aspose.com/file-tools
subject: sort an arraylist
It's not a secret anymore!