public static void method2 (){
String a ="张三";
Scanner sc = new Scanner(System.in);
System.out.println("请用中文输入您的姓名: ");
for (int i = 0 ;i < 100 ;i++ ) {
String x = sc.nextLine();
if (a == x) {
System.out.println("输入正确,请输入您的密码:");
break;
}else{
System.out.println("输入错误,请重新输入姓名: ");