Desc: compareChar restituisce vero o falso. se vero imposta il valore del pulsante, se falso non fare nulla.inline if istruzione java, perché non funziona
Sto cercando di utilizzare: se compareChar (curChar, toChar ("0"))? . GetButtons() ottenere (i) .setText ("§");
NetBeans sta dicendo: ')' eccettuato ':' eccettuato
ho provato queste combinazioni:
if compareChar(curChar, toChar("0")) ? getButtons().get(i).setText("§");
if compareChar(curChar, toChar("0")) ? getButtons().get(i).setText("§") : ;
if compareChar(curChar, toChar("0")) ? getButtons().get(i).setText("§") :
if (compareChar(curChar, toChar("0"))) ? getButtons().get(i).setText("§");
if (compareChar(curChar, toChar("0"))) ? getButtons().get(i).setText("§") : ;
if (compareChar(curChar, toChar("0"))) ? getButtons().get(i).setText("§") :
ringraziarvi
Grazie Guillaume, ha lavorato .. –