add recursive path find demo

add demo for creating new thred
This commit is contained in:
2025-02-17 09:35:24 +08:00
parent 3c709917e1
commit f5472740be
6 changed files with 160 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package createthread;
public class CreateByRunnable implements Runnable{
@Override
public void run() {
System.out.println("create by implementing Runnable");
}
public static void main(String[] args) {
CreateByRunnable createByRunnable = new CreateByRunnable();
new Thread(createByRunnable).start();
}
}