This is my code for the Bubble Sort. I cannot get the actual sorted values to output. The program reads the inputted numbers, but does not print it sorted. I\'m not sure what I
Try this :
for (int i = 0; i < num.length; i++) { for (int j = i + 1; j < num.length; j++) { if (num[i] > num[j]) { num[i] = num[i] + num[j] - (num[j] = num[i]); } } }