Tag - ladder if statement in java