When I type quit, the program doesn't show the option to repeat the process with the message "Do you want another go? " That's the only issue I have.
System.out.println("Please enter a word besides quit unless you want end the program ");
word = keyboard.next().toLowerCase();
while (!(word.equalsIgnoreCase("quit")))
{
combined = "";
flipped = "";
firstLetter = word.charAt(0);
remaining = word.substring(1);
combined = remaining + firstLetter;
for (i=combined.length()-1;i>=0;i--)
{
flipped+=combined.charAt(i);
}
if (word.equals(flipped))
{
System.out.println(word + " works");
}
else
{
System.out.println(word + " does not work");
}
word = keyboard.next().toLowerCase();
}
System.out.println("Do you want another go? ");
input = keyboard.nextLine();
}while (input.equalsIgnoreCase("yes"));
}
} ```