Condition to iterate your loop
for(int j=0; j<=99 & a[j] > 1; j++)
j<=99 & a[j].
j<=99 part is
true, but problem lies in second part of this condition.
-2, which leaves us with
-2>1 which is
So we end up with
true & false which is
false, so your loop will no longer iterate (or to be more precise will not even start iterating).
solved Java For loop Issue in condition statement