how do I translate the following pseudocode to java code:
for k:=0 to (j - i - 1)
{
a[j-k] :=a[j-k-1]
}
This is part of the insertion sort code from a discrete math book, I'm confused if I should put k++
or k--
or something else as part of the java for loop after the to
statement