diferent way of doing an if statement javas code example
Example: 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");
(condition) ? (what happens if true) : (what happens if false);
boolean party = friday ? play("what is love") : play("The Sound of Silence");