Create a class to hold the double number and the int initial index. Create a new array.
For each double number in the original array, create an instance of the class with its double value and its...
Type: Posts; User: Norm
Create a class to hold the double number and the int initial index. Create a new array.
For each double number in the original array, create an instance of the class with its double value and its...
So, you need to make some more changes to the code.
Can you use a custom class to hold the item's value and its initial position in the array?
Ok, does that look like the correct results? It does not look like it is sorted.
Have you printed out the results of the sortAverageGradesAndShowIndices method?
Does the contents of that print out look ok?
Add a print statement at the end of the method that prints out the...
Where is that error message from? Can you copy the full contents of the console from when the code is executed and paste it here?
How can a tester compile and execute the code? It is not...