I have below code, which i am checking not null check for two variables.
if (userParameter != null || configurationParameter != null){
add.userParameter();
add.configurationParameter();
}
Is there any way I can check for not null in one ifcondition like if((userParameter or configurationParameter) != null) in java.