日期:2014-05-20  浏览次数:20653 次

异常求助啊
class   TicketsThread   extends   Thread{
int   tickets   =   100;
public   void   run(){
while(true){
if(tickets   ==   0)
break;
System.out.println(Thread.currentThread().getName()+ "ticktes: "+tickets--);
}
}
}

class   Two{
public   static   void   man(String[]   args){  
TicketsThread   tt   =   new   TicketsThread();
tt.start();
}
}

为什么会出现异常??
Exception   in   thread   "main "   java.lang.NoSuchMethodError:   main

------解决方案--------------------
public static void man(String[] args){

写错了 应该是main