Hi, its has been a long time since I have used java and I would like some help making this loop as long as you say yes when you say no the loop will stop but not the program
if (place.equals("swordsmith"))
{
System.out.println("Hello " + name +"! Would you like to upgrage your sword for " + UPGRADECOST + " gold?");
smith = input.next();
smith = smith.toLowerCase();
if(smith.equals("yes"))
{
if (playerGold>=UPGRADECOST)
{
playerAttack+=UPGRADE;
playerGold-=UPGRADECOST;
}
else
{
System.out.println("Please come back when you have more gold!");
}
}
}
Also can someone tell me how I could store and load character files on my java application