这是什么原因啊??
class ThreadTest{public static void main(String args[]){
Thread t1=new MyThread("T1");
t1.setPriority(Thread.MIN_PRIORITY);
t1.start();
Thread t2=new MyThread("T2");
t2.setPriority(Thread.MAX_PRIORITY);
t2.start();
Thread t3=new MyThread("T3");
t3.setPriority(Thread.MAX_PRIOIRITY);
t3.start();
}
}
class MyThread extends Thread{
String message;
MyThread(String message){
this.message=message;
static public void run(){
for(int i=0;i<3;i++)
System.out.println(message+" "+getPriority());
}
}
}
ThreadTest.java:18: illegal start of expression
static public void run(){
^
ThreadTest.java:22: ';' expected
}
^
2 errors