package 线程;
import java.util.Random;
import java.util.Scanner;
public class Number {
public static void main(String[] args) {
// TODO Auto-generated method stub
Number1 proNum =new Number1();
Thread tPro =new Thread(proNum);
tPro.run();
try {
Thread.sleep(10);
Number1 gNum =new Number1 ();
Thread tGue =new Thread(gNum);
while(true) {
tGue.interrupt();
import java.util.Random;
import java.util.Scanner;
public class Number {
public static void main(String[] args) {
// TODO Auto-generated method stub
Number1 proNum =new Number1();
Thread tPro =new Thread(proNum);
tPro.run();
try {
Thread.sleep(10);
Number1 gNum =new Number1 ();
Thread tGue =new Thread(gNum);
while(true) {
tGue.interrupt();