import java.util.*;
class DianMing
{
public static void main(String[] args)
{
boolean bool=true;
while (bool)
{
int x=(int)(Math.ceil(Math.random()*100));
String[] arr={"aa","bb","cc","dd","ee","ff","gg","hh","ii","jj",
"kk","ll","mm","nn","oo","pp","qq","xx","yy","zz",
"11","22","33","44","55","66","77","88","99","10",
"12","13","14","15","16","17","18","19","20","21",
"22","23","25","qw","qe","qr","qt","qu","qw","qp","aaa",
"aa","bb","cc","dd","ee","ff","gg","hh","ii","jj",
"kk","ll","mm","nn","oo","pp","qq","xx","yy","zz",
"11","22","33","44","55","66","77","88","99","10",
"12","13","14","15","16","17","18","19","20","21",
"22","23","25","qw","qe","qr","qt","qu","qw","qp","aaa"};
System.out.println(x);
String s=arr[x];
System.out.println(arr[x]);
Scanner sc=new Scanner(System.in);
System.out.println("输入1,继续点名,其他数字点名结束");
int n=sc.nextInt();
switch (n)
{
case 1:
System.out.println("继续");
break;
default:
System.out.println("点名结束");
bool=false;
break;
}
}
}
}
|
|