装女人欺骗别人。你认为我们会上当么?打死也不回答
解决方案 »
- java.lang.ClassNotFoundException怎么解决啊,请哪位高手帮帮忙!
- 修改 删除 插入文本文件中的某一行
- 关于static方法与private变量的问题
- 高分求助:怎么实现树型菜单的拖放功能
- 请问java中TextField对象,为什么不管理如何设置中文字体,却只能显示宋体?
- java的package怎么用?谁能给个例子?
- 求问下面的程序该怎么修改
- 快来呀!送分,送分。。。
- 请问如何在鼠标点击xx button 的时候获得 JtextField 中的文本输入--有重分送
- implements 是用来做什么的?
- 很简单的问题:Class.forName("sun.jdbc.odbc.jdbcOdbcDriver")出错,帮忙!!!
- rmic怎么老是提示:Class com.deitel.advjhtp1.rmi.weather.WeatherServiceImpl not found.
准备怎么顶法???
public class useSub{
public static void main(String args[]){
subThread t1=new subThread();
subThread t2=new subThread();
subThread t3=new subThread(); t1.start(First);
t2.start(Second);
t3.start(Third); }
}
class subThread extends Thread
{
public void run(String str){
for(int times=0;times<5;times++){
System.out.println("thread:"+str+"reached the"+times+"times");
try{
Thread.sleep(500);
}
catch(InterruptedException e){
System.exit(1);
}
}
System.out.println(str+"finished");
}
}