mardi 28 juillet 2015

Java: Is if , else if and else count as one statement?

Example:

if(Boolean){
    if(Boolean) something();
    else if(Boolean) something(); 
    else something();
           }

This is the same as

if(Boolean)
    if(Boolean) something();
    else if(Boolean) something(); 
    else something();

Is if , else if and else count as one statement?

Aucun commentaire:

Enregistrer un commentaire