package com.twod4z;
/**
 * @program: com.twod4z
 * @description:
 * @author: Mr.Lin
 * @create: 2019年8月7日
 **/
public class MyThread extends Thread{    
    public void run() {               
        for(int i=0;i<=20;i++) {                             
            Thread t=Thread.currentThread();                                            
            System.out.println((i+1)+".你好,来自线程"+t.getName());                  
        }              
    }
}
MyThtread

相关文章:

  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2021-08-06
  • 2021-12-13
猜你喜欢
  • 2021-08-02
  • 2021-12-11
  • 2022-12-23
  • 2021-06-23
  • 2021-05-30
  • 2022-12-23
  • 2021-11-21
相关资源
相似解决方案