new Thread(()->{
try {
//要执行的代码
} catch (Exception e) {
e.printStackTrace();
}
}).start();
jdk 1.8 线程实例
猜你喜欢
转载自blog.csdn.net/u011293970/article/details/72828655
今日推荐
周排行