public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int a = 0;
String inuserName = “zhouxiaoan”;
String inpassword = “aini21”;
int c = 0;
System.out.println(“欢迎余莉投标登录系统*”);
while (a < 10000) {
System.out.println(“请选择:1.登录 2.注册 3.修改密码”);
int choice = input.nextInt();
while (choice == 1 || choice == 2 || choice == 3) {
if (choice1) {
while (choice == 1) {
System.out.println(“请输入用户名:”);
String userName = input.next();
System.out.println(“请输入您的密码:”);
String password = input.next();
if (userName.equals(inuserName) && password.equals(inpassword)) {
System.out.println(“恭喜您登录成功!”);
choice = 4;
a = 10001;
break;
Java中简单的登陆注册修改
最新推荐文章于 2022-10-05 12:33:23 发布