public static void main(String[] args) {
int count = 3;
Scanner scanner = new Scanner(System.in);
while (count != 0) {
String passWorld = scanner.nextLine();
if(passWorld.equals("123456")) {
System.out.println("登录成功!");
}else {
count--;
}
}
}