import java.util.Scanner;
public class 登陆 {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("请输入用户名:");
String a=input.next();
System.out.println("请输入登录密码:");
String b=input.next();
if (a.equalsIgnoreCase("xxx")&&b.equalsIgnoreCase("***")) {
System.out.println("登陆成功!");
}
else {
System.out.println("登录失败!");
}
}
}
public class 登陆 {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("请输入用户名:");
String a=input.next();
System.out.println("请输入登录密码:");
String b=input.next();
if (a.equalsIgnoreCase("xxx")&&b.equalsIgnoreCase("***")) {
System.out.println("登陆成功!");
}
else {
System.out.println("登录失败!");
}
}
}