do
{
System.out.println("The word is: " + correct[randomSelection] + "\nYour Answer: ");
answer = input.next();
}
while(!(answer.equalsIgnoreCase("y") || answer.equalsIgnoreCase("n")));
in this code whenever I try to execute it, it always prints the sop statement twice.
Aucun commentaire:
Enregistrer un commentaire