2020/08/27 QQ1017871939 初识线程
初始线程
package com.xiancheng.ch01;
public class ThreadTest01 {
public static void main(String[] args) throws InterruptedException {
//获得当前线程
Thread t1 = Thread.currentThread();
System.out.println("Threadname:"+t1.getName());
//获得ID
System.out.
原创
2020-08-27 20:52:37 ·
827 阅读 ·
0 评论