does anyone know what is wrong with this?
does anyone know what is wrong with this sort?
it outputs the array as: [I@a90653
//Sort the values of the 4 rolls
for (int index = 1; index < 4; index++)
// index refers to the element that is "trying to find its place"
int key = fourRollVals[index];
int position = index;
// shift larger values to the right
while (position > 0 && fourRollVals[position-1] >= key)
fourRollVals[position] = fourRollVals[position-1];
fourRollVals[position] = key;