This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring 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]
I agree. Here's the link:
subject: sort an arraylist
It's not a secret anymore!