/*
模拟随机点名器
*/
import java.util.Scanner;
class Demo1_DianMing {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String[] s ={" ","小花","小华","小朋","小龙","小李","小东"};
String[] s1 ={" ","他是个好人","他是一个富二代","她是一个小偷","他爱看书","他爱吹牛","他是大神"};
System.out.println("请您输入任意 0---9 的数字 来开启点名系统: ");
int num = sc.nextInt();
int x = (int)(Math.random()*6)+1;
System.out.println();
while(true){
if(num > -1 && num < 10) {
System.out.println("现在已经为您开启了点名系统,稍等片刻.......... \r\n");
int i =99999;
for (int y=0;y<i ;y++ ) {
for (int z=0;z<i ;z++ ) {
}
}
System.out.println("久等了,输出的姓名是:"+s[x]+"\r\n");
System.out.println("不要走开, 接下来还有你要查阅人的私人信息\r\n");
int m =99999;
for (int y=0;y<m ;y++ ) {
for (int z=0;z<i ;z++ ) {
}
}
System.out.println("根据百度百科显示:\r\n");
int y = (int)(Math.random()*6)+1;
System.out.println(s1[y]+"\r\n");
break;
}else {
System.out.println("你是逗逼吗? 看不懂要求吗?重输入:::::\r\n");
num = sc.nextInt();
}
}
}
}
|
|