samedi 22 août 2015

"Else without IF" Syntax Errors - Not Detecting Code [on hold]

I keep getting an "else without if" error. How can I resolve this?

if (userInput.equals(joshua) || userInput.equals(saron));{
            System.out.println("Hello boss");
        else { 
                System.out.println("You aren't welcome here. Goodbye.");
            }
        }
    }
}

Aucun commentaire:

Enregistrer un commentaire