There was an error while loading. Please reload this page.
1 parent fe210f1 commit 6d581bcCopy full SHA for 6d581bc
HelloWorld.java
@@ -1,5 +1,5 @@
1
public class HelloWorld implements Runnable {
2
- String str;
+ String str;
3
long pause;
4
int index;
5
HelloWorld(String str, long pause) {
@@ -19,4 +19,8 @@ public void run() {
19
e.printStackTrace();
20
}
21
22
+ public static void main(String[] args) {
23
+ Thread t = new Thread(new HelloWorld("Hello World", 500));
24
+ t.start();
25
+ }
26
0 commit comments