Question: Add a method void sortDecreasing ( ) to the IntegerList class that sorts list into decreasing ( instead of increasing ) order. Use the selection
Add a method void sortDecreasing to the IntegerList class that sorts list into decreasinginstead of increasing order. Use the selection sort algorithm, but modify it to sort the other way. Be sureyou change the variable names so they make sense!Add an option to the menu in IntegerListTest to test your new method.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
