Single Line If Condition In Java