• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to conversing the ArrayList item ??

 
Jacky Rateng
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jacky Rateng:
converse sort ArrayList.

I am not sure what you are asking for here.
 
Ron Newman
Ranch Hand
Posts: 1056
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know what a "converse sort" is. You might want to take a look at Arrays.sort() , however.
 
Ron Newman
Ranch Hand
Posts: 1056
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops, actually Collections.sort() is probably more likely to be what you want.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or maybe Collections.reverst(List)?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic