62,614
社区成员
发帖
与我相关
我的任务
分享
Thread thread = new Thread()
{
public void run()
{
while(true)
{
try
{
Thread.sleep(500);
}
catch(Exception e){}
System.out.println("1:"+this.getName());
System.out.println("2:"+Thread.currentThread().getName());
}
}
};