aspose file tools*
The moose likes Java in General and the fly likes how to conversing the ArrayList item ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to conversing the ArrayList item ?? " Watch "how to conversing the ArrayList item ?? " New topic
Author

how to conversing the ArrayList item ??

Jacky Rateng
Greenhorn

Joined: Jun 30, 2002
Posts: 6
I have a variable of following:
ArrayList al = new ArrayList();
ArrayList b1 = new ArrayList();
al.add(b1);
....
...
al.add(b1);
doing N loop.
I want to get the a1 is a converse sort ArrayList.
How to conversing a1 ?? May I use class what is a nice skill class or method?
thinks advance.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Originally posted by Jacky Rateng:
converse sort ArrayList.

I am not sure what you are asking for here.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Ron Newman
Ranch Hand

Joined: Jun 06, 2002
Posts: 1056
I don't know what a "converse sort" is. You might want to take a look at Arrays.sort() , however.


Ron Newman - SCJP 1.2 (100%, 7 August 2002)
Ron Newman
Ranch Hand

Joined: Jun 06, 2002
Posts: 1056
Oops, actually Collections.sort() is probably more likely to be what you want.
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Or maybe Collections.reverst(List)?


"I'm not back." - Bill Harding, Twister
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to conversing the ArrayList item ??