how to use if else statement in java