class test implements Runnable
{
private long i; printchar(long i)
{
this.i=i;
} public void run()
{
this.dosth();
}
public synchronized void dosth()
{
try
{
Thread.sleep(this.i);
//数据库操作
}
catch(InterruptedException ex)
{
System.out.println(ex);
}
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货