Due by the end of this meeting
int[].
Your task is to change InsertionSort
so that it uses an array of String,
which this version of Common can work with.
numbers to names.
Your IDE probably provides an easy way to do that, so you don't have to hunt down every occurrence of "numbers" and edit it.I know that Netbeans does.
names
to hold the following values:
Mal Zoe Kaylee Wash Inara Book Simon River
insertionSort
to work on an array of String
instead of an array of int.
That will require you to make a few changes
inside the body of the method,
but it won't be very many changes.
Make sure to format your code before you submit it, and make sure all lines are 80 characters or less long.
You can probably complete all the required changes without disturbing the indentation at all, but there have been a lot of submissions with indentation problems, and when the solution to such problems is so very easy, you should just get into the habit of formatting your code regularly.
The changes you need to make won't likely push any line over 80 characters, either. But if you have the 80-character line showing on the screen, a quick scan down will confirm your line lengths as appropriate. Again, such an easy fix is one that you should be in the habit of making.
Submit this/these files: