int c = 2;
int a = 1;
if(a==1){
if(b=2)
{c = 3;}
else
{d = 4;}
}
else if(c==3){
system.out.println("Success");
}
else{
system.out.println("Failed")}
I want display "Success" but value c is 2 .. not 3 .. How i can pass data from if to be condition else ?
Aucun commentaire:
Enregistrer un commentaire