System.out.println("\n");
System.out.println("What is the upgrade of your Hammer? You must choose a number.");
System.out.println("1. No Upgrade");
System.out.println("2. Sapphire.");
System.out.println("3. Emerald.");
System.out.println("4. Ruby.");
System.out.println("5. Diamond.");
String var1 = Scanner.nextLine();
//char hammerlevel = (char) System.in.read();
System.out.println();
System.out.println("\n");
double noviceStardustPotion = 6023.33333333; //amount of experience per potion average
if (var1.equals('No Upgrade')
{
}
It was working originally when I used the numbers, but I don't want my users typing a number, I want them to type the actual word.
if (hammerlevel == '1')
{
}
I've researched on the .equals method and I cannot find any examples like mine that use the method with a string in the parentheses
Any ideas or even blatant answers that could help?