Thread的Sleep方法详解,

/* 1.Thread.sleep(毫秒) 2.sleep方法是一个静态方法 3.该方法的做用:阻塞该线程,让给其余线程 */ public class fuck4 { public static void main(String[] args) throws InterruptedException{ Thread t1=new professor(); t1.setName("t1"); t1
相关文章
相关标签/搜索