if statement - Multiple conditions in Java -
is there way test multiple conditions in java in short way?
let's use following example:
if(height == 1 && width == 3 && visible && running && users<3) dothis();
this rather short test, if there's more? i'm aware of nested if(test)
can structure, becomes hard follow after 10 tests. imagine test varies in code, no standardised method can called. stated way decent possibility?
Comments
Post a Comment