package com.mayikt; /** * @ClassName Test09 * @Author 蚂蚁课堂余胜军 QQ644064779 www.mayikt.com * @Version V1.0 **/ public class Test09 { public static void main(String[] args) { // new Thread(new Runnable() { // @Override // public void run() { // System.out.println("获取到线程名称:" + Thread.currentThread().getName() + ",子线程"); // } // }).start(); new Thread(() -> System.out.println("获取到线程名称:" + Thread.currentThread().getName() + ",子线程")).start(); } }
lambda实现线程调用
原创
©著作权归作者所有:来自51CTO博客作者angdh的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:lambda实现集合遍历 排序
下一篇:使用lambda的精简写法
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
opencv中利用LM迭代求映射矩阵
STL迭代器简介 标准模板库(The Standard Template Library, STL)定义了五种迭代器。下面的图表画出了这几种: input output
opencv中利用LM迭代求映射矩阵 output 算法 input vector