Java Why Does My Code Print Both If And Else Statement Rather It

Java Why Does My Code Print Both If And Else Statement Rather It