请帮忙看Thread问题
oDon 2006-03-31 09:09:30 import java.io.*;
import java.util.*;
public class ThreadTest implements Runnable{
int sleeptime;
int count;
int num;
public ThreadTest(int time, int timez){
int sleeptime = time;
int count = timez;
int num = 0;
}
public void run(){
System.out.println("Thread is running!");
while(num < count){
count++;
System.out.println(new Date(System.currentTimeMillis()));
Thread.sleep(sleeptime);
}
}
public void stop(){
System.out.println("Thread is dead!");
}
public static void main(String[] args){
ThreadTest tt = new ThreadTest(100,20);
tt.start();
}
}
//找不到符号