Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ArrayList  RSS feed

 
MInu
Ranch Hand
Posts: 517
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have two ArrayList,

ArrayList A1 contains some integer values like (01,34,21,08,65).

ArrayList A2 contains some values like (af,ab,fd,ws,vd)

I have to sort both of these ..

How can i do this.?
Can help me............................

Thanks in Advance.
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a sort method in Collections that lets you sort a collection based on natural order.

There is also a sort method in Collections that lets you specificy a Comparator.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!