Tag - if-else statement in java