package project_8_30;
import java.util.Scanner;
public class Test
{
public static void main(String[] args)
{
int count=1;
while(count<=3){
Scanner sc=new Scanner(System.in);
System.out.println("请输入密码:");
String password=sc.next();
if("123".equals(password)){
System.out.println("请选择操作: 1.查询 2.取款 3.修改信息");
return;
}else{
System.out.println("输入错误!错误次数为:"+count);
if(count==3){
System.out.println("今日输入次数过多,卡被锁定!");
break;
}count++;
}
}
}
}