java8多线程不带返回值

时间:2020-08-17 17:13:11   收藏:0   阅读:61
 public static void main(String[] args) {
        new Thread(() -> System.out.println(Thread.currentThread().getName())).start();

    }

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!