Java One Line If Else Statement