I have an if statement where one of two conditions can be met, but I don't want to use nested if.
For example, what I would like is to have;
String s;
if(s == "foo" || "bar") {
    // true
} else {
    // false
}
However, operator || cannot be applied to a String.
Is there any way around this?
 
     
     
     
     
     
     
     
    