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

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

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -