if(i >= 6){
break;
}else{
Random r = new Random();
int rn = r.nextInt();
System.out.println(Thread.currentThread().getName()+ "要去" + str[rn]);
}
try {
Thread.sleep(300);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
|
|