Java Single Line If Statement