My code
public class BattleSystem {
public static void main (String[] args) {
String choice;
System.out.print("What would you like to do? ");
Scanner input = new Scanner(System.in);
choice = input.nextLine();
System.out.println(choice);
if(choice == "1"){
createChar g = new createChar();
g.charCreateHandler();
g.charStatsHandler();
g.closeFile();
}
else{
System.out.println("More choices coming soon!");
}
}
}
Console
What would you like to do? 1
1
More choices coming soon!
It should not run my else statement. Help?