Im trying to use the compareTo() method to get the largest object in the array. The output I get is this:
Position of max area is...3
[Circle Color: null Filled: false 1.0, Circle Color: red Filled: true 1.0, Rectangle Color: null Filled: false 20.0 10.0, Rectangle Color: null Filled: false 5.0 1.0]
[Circle Color: null Filled: false 1.0, Rectangle Color: null Filled: false 20.0 10.0, Rectangle Color: null Filled: false 5.0 1.0, Circle Color: red Filled: true 1.0]
I now am able to get the right max are value, but I seem to be sorting it wrong
Thanks for the help in advance.