Chciałbym zrobić cos takiego:
static char lszn(int a){
if(a==1){
return ((char)(r.nextInt(24)+65));
}
if(a==0){
return ((char)(r.nextInt(24)+97));
}
}
A potem użyć tej motody w ten sposób:
on.setimie(lszn(1)+lszn(0)+lszn(0));
bądź tak:
tx=lszn(1)+lszn(0)+lszn(0);
on.setimie(tx);
Ale mi tą metodę uznaje jako zmienne liczbowe ;/.
Co muszę zrobić aby to hulało.