java short if then else code example Example: java shortest if else statement (myNumber == 12) ? "true" : "false"