java code or code example
Example 1: java if a or b
if(a || b){
doSomething();
}
/*
For if queries: || (OR), && (AND), == (EQUALS), != (DOES NOT EQUAL)
< (LESS THAN), > (GREATER THAN), <= (LESS THAN OR EQUAL TO),
>= (GREATER THAN OR EQUAL TO)
*/
Example 2: java if different ways
(condition) ? (what happens if true) : (what happens if false);
boolean party = friday ? play("what is love") : play("The Sound of Silence");