摘要: 在静态方法中,new 一个类对象,用类对象调用非静态方法 第一种方式创建线程 public class Main { private class MyRun implements Runnable{ public void run(){ for(int i=0; i<10; i++){ System 阅读全文
posted @ 2023-01-02 10:11 northli 阅读(65) 评论(0) 推荐(0)