This is basically what I have to do. I think I have the methods correct in terms of sorting, but how do I switch it from largest to smallest?
The selectionSort method should take an array of integers as a
parameter and will sort the numbers into order from largest to smallest.
Place a println statement in the sort so every time a new maximum is
found, it is printed to the screen. Once all are sorted, the method...
User Profile
Collapse
-
Would someone help me with Searching and Sorting Arrays?
-
Help with ArrayLists parameters?
This is what I have so far. Am I on the right track because I am kind of confused? I understand what it is asking for, but I do not really know how to put that in code. I received the error: type ArrayList does not take parameters at line 9 and 11. Can someone help?
Write a method called removeLowerThan that takes a double, number,and an integer, length, as parameters. The method should create an ArrayList and fill it with...
No activity results to display
Show More