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?
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