I have managed to work out how to print the highest value, but am unsure how to print the lowest one. so far I have this:
I assume that for the lowest value, the idea is the same, but i can't have a certain number in the brackets because the arrayList length is unknown.
Thinking out loud here, but is there anyway I can find out the length of this ArrayList and then put that number in the brackets?
also have a look at the reverse(List), reverseOrder(), and reverseOrder(Comparator) methods in the Collections class.
You can combine these with sort to reverse the list.
Post by:autobot
What is that? Is that a mongol hoarde? Can we fend them off with this tiny ad?
a bit of art, as a gift, that will fit in a stocking