We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf492c5 commit abfc0fbCopy full SHA for abfc0fb
2.javaThreadDemo/src/Main.java
@@ -1,8 +1,22 @@
1
+import java.util.concurrent.*;
2
+
3
public class Main {
4
5
public static void main(String[] args) {
6
System.out.println("Hello World!");
- System.out.println("当前线程名为:"+Thread.currentThread().getName());
- System.out.println("当前线程id为:"+Thread.currentThread().getId());
7
+ System.out.println("当前线程名为:" + Thread.currentThread().getName());
8
+ System.out.println("当前线程id为:" + Thread.currentThread().getId());
9
+ }
10
+}
11
12
+class Item implements Delayed {
13
+ @Override
14
+ public long getDelay(TimeUnit unit) {
15
+ return 0;
16
17
18
19
+ public int compareTo(Delayed o) {
20
21
}
22
0 commit comments