sorting suggetion needed..

If I have SOME card7 Q J 7 5 3 K unsorted in an arry, what kind a methodshould I use to sort it in A K Q J 9 8 7 6 5 4 3 2 format? put a id numberfor each of the card?
[188 byte] By [saipkjaia] at [2007-9-29 21:43:51]
# 1
put all Elements in a ArrayList and call Collections.sort( arraylist);The inputlist is returned sorted back, you can use a Comparator Class to define how sorting works
pitsoft21a at 2007-7-16 2:03:20 > top of Java-index,Archived Forums,Portability & Platform Independence [Archive]...