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 -

Magento/PHP - Get phones on all members in a customer group -

android - Facebook Login CallbackManager FacebookCallback called onCancel() every time -