简单问题,如何让程序暂停1秒钟 sleep(1000);函数在哪个包里 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 try { threadName.sleep(1000)} catch (Exception e) {} public class Test { public static void main(String args[]) { System.out.println("hello"); try{ Thread.sleep(10000); }catch(InterruptedException e) { } System.out.println("world"); } } try { Thread.currentThread().sleep(ms); } catch (InterruptedException ex) { } java 窗体开发需要一个属性控件,求思路? 大家都来说说吧 线程和socket的问题... StackOverFlow的错误[与JSlider有关] java中可以调用.dll的动态连接库吗? 解析XML时,dom4j包的引入时发生的问题 如何把一些class文件引入到一个package中 在java 的本地程序里面怎么调用DOS 的命令 例如:copy 等等??? 关于邮件服务器如何自动分配帐号和密码? 有没有可用的农历的包 如果知道当前的环境变量有哪些? ----关于类对象作为函数返回值的问题------
threadName.sleep(1000)
} catch (Exception e) {}
{
public static void main(String args[])
{
System.out.println("hello");
try{
Thread.sleep(10000);
}catch(InterruptedException e)
{
}
System.out.println("world");
}
}
Thread.currentThread().sleep(ms);
}
catch (InterruptedException ex) {
}