java幸运抽奖系统

package cssl.css;

import java.util.Scanner;

publicclass login { /** * 注册 * 登录 * 抽奖 */ publicstaticvoid main(String[] args) { String answer=\; Scanner input=new Scanner(System.in); int choice=0; String username; String password; int cardNo; booleanisReg=false; do{ System.out.println(\欢迎进入英雄联盟抽奖系统*******\); System.out.println(\注册\); System.out.println(\登录\); System.out.println(\抽奖\); System.out.println(\); System.out.println(\请选择你要进入的界面\); choice=input.nextInt(); switch(choice) { case 1:System.out.println(\英雄联盟抽奖系统》注册\); System.out.println(\请输入您的个人信息\); System.out.println(\请输入您的用户名\); username=input.next(); System.out.println(\请输入您的密码\); password=input.next(); cardNo=(int )(Math.random()*8999)+1000; isReg=true; System.out.println(\注册成功\\n您的用户名\+username+\密码\+password+\卡号\+cardNo+\); break; case 2:System.out.println(\英雄联盟抽奖系统》登录\); break; case 3:System.out.println(\英雄联盟抽奖系统》抽奖\);break; default:System.out.println(\您的输入有误\); } System.out.println(\是否继续?(y/n)\); answer=input.next();

}

}

}while(answer.equals(\)); System.out.println(\退出系统\);

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4