摘要: class Thread1 extends Thread { @Override public void run() { while (true) { System.out.println(this.getState()); } } 在main方法中: Thread t1 = new Thread( 阅读全文
posted @ 2020-12-08 15:08 Noah1997 阅读(122) 评论(0) 推荐(0)