About if statement in Java lang -


i want ask,can insert if statement if statement have code this:

       if(some codes && codes || (if(some codes) && codes))     //then else.. 

is possible.i tried gives error.maybe syntax error maybe not possible if answer learn :)

that's syntax error.

if have multiple conditions want test, e.g. a, b, c , d, combining them logical operators in single if statement should enough, e.g.:

if (a && b || (c && d)) {     ... } 

Comments