Java One Line If Statement