Why is it int j = i and not int j = i + 1 like that :
for (int j = i + 1; j < array.length; j++)
I ran the program with int j = i + 1, and it works, but I don't understand why it also works with int j = i (because we would compare the same element in the array? array[0] with array[0] instead of array[0] with array[i] if we add a +1. Thanks,