java if different ways

Java
(condition) ? (what happens if true) : (what happens if false);

boolean party = friday ? play("what is love") : play("The Sound of Silence");
Source

Also in Java: