Sort Array of Objects
Posted on 2003-10-30
Can some1 give me a quick example of how to use the utils.Arrays.sort on an object. The object extends a JPanel I have a 2 dimensional array of the object, each item has a back ground colour and a value which is of type string the values are "full words" of numbers 1-10.
I need to sort in any order of colour and then of the value of the item.
Think of the items as a deck of cards ie. the colours representing the suits.
If u can help me with any part of this question i will make more points available for more help.