For some reason, not mater what the user inputs it loops and executes the if and loops the do while, even if both get set to false. kb is the Scanner, and the methods aren't changing the values of thrase or phrase, just saving them to a txt. The whole things rather long and this is the only section I'm having issues with
do{
thrase = trase();
System.out.print("Tore: " +thrase);
toSave();
System.out.print(name +": ");
phrase = kb.nextLine();
if(!phrase.equalsIgnoreCase("cs: end"))
{
ddSave();
usSave();
}
}while(!phrase.equalsIgnoreCase("cs: end"));
Aucun commentaire:
Enregistrer un commentaire