I have an issue when I run this program, If I use int it works, but for string it does not.
import java.util.Scanner;
public class userinput_swutch_do_while {
public static void main(String[] args) {
String password= null;
Scanner value = new Scanner(System.in);
do {
System.out.println("Enter the password for ATM: ");
password = value.nextLine();
System.out.println("You put : "+password);
} while (password !="55");
System.out.println("You got it!");
}
}