进阶day06-匿名内部类实现多线程(重点掌握)

This commit is contained in:
2026-03-07 14:29:40 +08:00
parent 530da7f279
commit bb595f2be5
2 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
package com.inmind.noname_thread03;
public class MyThread extends Thread{
@Override
public void run() {
System.out.println(Thread.currentThread().getName()+"线程启动了");
}
}