Hi!
This is an insertion sort program, the program is OK
But my question is about out put of (j):
--------------------------------------------------
A[j + 1] = a;
System.out.print(j+" ");
--------------------------------------------------
The out put is
-1,0,0,-1,1,-1,1)
Which (j) dose take these values and how dose it work???