The if statement wont work if I type "yes" or "no". What am I doing wrong!? I am using eclipse for this.
public static void End() { Scanner input = new Scanner(System.in); System.out.println("Do you want to try again? (type 'yes' or 'no')"); String answer = input.next(); if(answer=="yes") { Loop(); }else if(answer=="no") { System.out.println("Good Bye!"); } }