So the idea was like that
String path="";
for(i=0;i<50,i++){
path+="letterInGame[i] !=\'" + letterInGameTried[j] + "\'&&";
}
and then later in code to do
if (path){
do something
}
basically i want to put a string in an if statement that i've made before to be all the expresions i want to check for.
Aucun commentaire:
Enregistrer un commentaire