add recursive path find demo
add demo for creating new thred
This commit is contained in:
13
src/createthread/CreateByRunnable.java
Normal file
13
src/createthread/CreateByRunnable.java
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user