if(teste == 1){
if(con == 1){
sCol1 = "col + 1";
sLin1 = "lin + 1";
sCol2 = "col + 2";
sLin2 = "lin + 2";
} else {
sCol1 = "col + 1";
sLin1 = "lin - 1";
sCol2 = "col + 2";
sLin2 = "lin - 2";
}
}
for (int col = 0; col < COLUNA; col++) {
for (int lin = 0; lin < LINHA; lin++) {
if (tab[col][lin] == 4 || tab[col][lin] == 5 || tab[col][lin] == teste
&& tab[Integer.getInteger(sCol1)][Integer.getInteger(sLin1)] == 2
&& tab[Integer.getInteger(sCol2)][Integer.getInteger(sLin2)] == 0) {
boo = true;
}
}
Boa tarde,
Não há maneira de pegar no String e enviar para dentro de um array que por sua vez esta dentro de um for? :shock:
Não expliquei muito bem mas acho que vendo o código dá para perceber 
Grato