package com.company;
import java.util.Scanner;
public class Demo22 {
public static void main(String[] args) {
String answer = "y"; // 标识是否继续
String userName = ""; // 用户名
String password = ""; // 密码
int cardNumber = 0;
boolean isRegister = false;
int max = 9999;
int min = 1000;
Scanner input = new Scanner(System.in);
do {k
System.out.println("***欢迎来到奖客富翁系统***");
System.out.println("\t1.注册");
System.out.println("\t2.登录");
System.out.println("\t3.抽奖");
System.out.println("**********************");
System.out.print("请选择菜单:");
int choice = input.nextInt();
switch (choice){
case 1:
System.out.println("[奖客富翁系统>注册]");
System.out.println("请填写个人注册信息:");
System.out.print("用户名:");
userName = input.next();
System.out.println("密码");
password = input.next();
cardNumber = (int) (Math.random() * (max - min))+ min;
System.out.println("\n注册成功,请系好您的会员卡号");
System.out.println("用户名\t密码\t会员卡号");
System.out.println(userName+"\t"+password+"\t"+cardNumber);
isRegister = true;
break;
case 2:
}
}
}
}