Search:

Type: Posts; User: Norm

Search: Search took 0.27 seconds.

  1. Re: Sorting an array without using the method sort()

    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...
  2. Re: Sorting an array without using the method sort()

    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?
  3. Re: Sorting an array without using the method sort()

    Ok, does that look like the correct results? It does not look like it is sorted.
  4. Re: Sorting an array without using the method sort()

    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...
  5. Re: Sorting an array without using the method sort()

    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...
Results 1 to 5 of 5