Im learning java, and having trouble with some simple code.
Heres my code, can you tell me why the output is disregarding the "Correct!" statement at the end
package Otm;
import java.util.*;
public class Otm {
public static void main(String arg[]) {
Scanner sc=new Scanner(System.in);
String Wash="Washington";
String Ham="Hamilton";
String Jac="Jackson";
int choice;
int dollar;
String person;
System.out.println("Type 1 to enter a denomination, 2 to enter a last name: ");
choice=sc.nextInt();
if(choice==1){
System.out.println("Choose a denomination: ");
Scanner b=new Scanner(System.in);
dollar=b.nextInt();
if(dollar==1){
System.out.println("Which person appears on the 1 dollar bill?");
Scanner l=new Scanner(System.in);
person=l.next();
if(person==Wash){
System.out.println("Correct!");
}
}
}
}
}