how to make a if statement better in java code example
Example 1: if and in java
if(x == 1 && y == 2){
println("x = 1 and y = 2");
}
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");