Yes this confirms what I was looking for
which was a nested for loop. Here is my code:
int[] numbers = new int[sortTotal];
for ( index = 0; index < numbers.length; index++) {
numbers[index] = terminal.readInt(">");
}
for (index = 0; index < numbers.length; index++){
min = index;
for ( j = index+1; j < numbers.length; j++){
if ( numbers[j] < numbers[min] )
min = j;
}
temp = numbers[index];
numbers[index] = numbers[min];
numbers[min] = temp;
}