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