Jeanne Boyarsky wrote:Try creating a method called printNumberLegs(). Implement in Animal, Dog and Special Animal. Then you can call that one method.
Looks like a simple order by date,customer_id would work to me.
Author Implements Call back to avoid blocking when we use future to get a result.
Then you have to have your findHighValue method keep a reference to the Future, and call get() on it to get the results:
I assume the array to be sorted / selected from is actually passed into your method from some other method?
If so, what is to stop some other thread from modifying that array while you are working with it?
How much data do you have to sort? Is it mostly sorted already? Does it have to be a stable sort?