samedi 27 août 2016

java - efficient form of "OR" in "IF statement"

boolean a = false, b = true, c = true; if ( a == false || b == false || c == false ) { return true; }

Is there any efficient way of coding for this statement using : or ? symbols or any other tricks that you can recommend?

Aucun commentaire:

Enregistrer un commentaire