/**
需求:做个点名器
*/
import java.util.Scanner;
class JiShuQi
{
public static void main(String[] args)
{
Scanner s = new Scanner(System.in);
//设置一个while语句,
while(true){
System.out.print("你已经进入0416点名,要点名吗?(1/0)");
int b = s.nextInt();
if(b != 1)
continue;
String []arr={"张鹏","陈濠","高光天","杨鹏","喻忠航","郭照元","谢郡","刘荣志","郭鹤鸣","张成","刘启昌","刘哲","李晓静","晁冰","许庆利",
"郗浩","付长云","王宇","麻旭","鲁柯","蒋启明","刘剑","蔡奇峰","朱珅平","孙磊","张乐","云霄","谈振","李健","路亮亮","黄麒麟",
"杜应超","陶银","李洋","刘坤旭","张威","闫耿杰","刘瑾","车孟孟","常文静","胡光明","杨海林","张岩松","梁健","尹瑞敏","孔令威",
"龙俊成","付浩","赵桂勇","刘虹麟","高超","段立志","贾居峰","李欢欢","贾晓军","齐灿","李伟祥","刘国蒙","胡振亮","曹金松",
"匡璐","叶凤东","王子阳","王冠","吴奎庆","卢凤淦","罗韬","杨登平","李旭","卢从益","柳凡","杨鹏","李晓华","崔小可","崔振",
"李丽","付俊","杨稳"};
int number = (int)(Math.random()*78)+1;
System.out.println("这次被点的人是"+arr[number-1]);
}
}
}
|
|