I'm not entirely sure how to even begin, but so far I have:
public String[] sort()
{
String min;
String[] tmp = new String[mySize];
for (int i=0; i<mySize; i++)
{
for(int j=0; j<mySize; j++)
if (list[j].compareTo(list[i])<0)
I'm not sure where to go from there, or even if that's right. I want to do an insertion sort where it reads each string in the array, then sets the one with the lowest value to a position in the array, increment that position, then do it all again. I'm totally lost though.

New Topic/Question
Reply




MultiQuote




|