package java15;
import java.util.Scanner;
public class Demo11 {
public static void main(String[] args) {
Scanner input=new Scanner (System.in);
String uname,pwd;
System.out.println("请输入用户名:");
uname=input.next();
System.out.println("请输入密码:");
pwd=input.next();
if(uname.equals("TOM") && pwd.equals("123456")) {
System.out.println("登陆成功!!!");
}else {
System.out.println("用户名或密码不匹配,登陆失败!!");
}
}
}