It prints out number '10' about 213098 times which is the current highest score. In the seccond portion of the terminal window stays the same error as before.
String line = c;
private String getOutputString(Object[][] data)
{
for (int i=1; i<data.length; i++)
{
int n = i;
while (n > 0 && (Integer)data[n][1] > (Integer)data[n-1][1])
{
Object[] hold = data[n-1];
data[n-1] - data[n];
data[n] = hold;
n--;
}
}
String outputLine = "";
for (int i=0; i<data.length; i++) outputLine += data[i][0]+":"+data[i][1]+"::";
return outputLine;
}String line = getOutputString[c);