?
=?ISO-8859-1?Q?Anders_W=FCrtz?=
Hi
have a list of card objects, each with a rank (1-13) and a type (hearts,
spades etc.) i would like to sort them in type order (eg. hearts before
spades) how would i go about doing that?
currently i am using an ArrayList as datastructure
i noticed the IComparable interface, can i use it to sort the array in
the specified order.
Thanks in advance
Anders
have a list of card objects, each with a rank (1-13) and a type (hearts,
spades etc.) i would like to sort them in type order (eg. hearts before
spades) how would i go about doing that?
currently i am using an ArrayList as datastructure
i noticed the IComparable interface, can i use it to sort the array in
the specified order.
Thanks in advance
Anders