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

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -