It depends, if the while loop is supposed to end if just one of those conditions is false, then use a boolean
boolean works = true;
if in your for loop, a value equals target, you change works...
Type: Posts; User: javapenguin
It depends, if the while loop is supposed to end if just one of those conditions is false, then use a boolean
boolean works = true;
if in your for loop, a value equals target, you change works...
You could always use a for loop.
while ((x<y) &&
((red[0][x] != target) &&( red[1][x] != target) && (red[2][x] != target)
&& (red[3][x] != target) && (red[4][x] != target) && (red[5][x] != target) &&
(red[6][x]!=...