int current = 0;
for (int i = 0; i < array.length ; i++) {
for (int j = i+1; j < array.length ; j++) {
if (array[i]>array[j]) {
current = array[i];
array[i] = array[j];
array[j] = current;
}
}
}