if clause in jav code example
Example 1: if and in java
if(x == 1 && y == 2){
println("x = 1 and y = 2");
}
Example 2: javascript conditional
// example:
age >= 18 ? `wine` : `water`;
// syntax:
// <expression> ? <value-if-true> : <value-if-false>