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

救命 这么简单的代码 运行错误,哪里错了
public   class   Thread5{
public   static   void   main(String[]   args){
SumThread   st1=new   SumThread(1,500);
SumThread   st2=new   SumThread(500,1000);
st1.start();
st2.start();
try{
st1.join();
st2.join();
}catch(InterruptedException   ie){}

long   sum=st1.getSum()+st2.getSum();
System.out.println( "1~1000的和:   "+sum);
}
}


哪里错了????
奇怪了

------解决方案--------------------
是不处理异常时,没有内容?