update main
This commit is contained in:
parent
bf492c527b
commit
abfc0fbabc
@ -1,3 +1,5 @@
|
|||||||
|
import java.util.concurrent.*;
|
||||||
|
|
||||||
public class Main {
|
public class Main {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
@ -6,3 +8,15 @@ public class Main {
|
|||||||
System.out.println("当前线程id为:" + Thread.currentThread().getId());
|
System.out.println("当前线程id为:" + Thread.currentThread().getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class Item implements Delayed {
|
||||||
|
@Override
|
||||||
|
public long getDelay(TimeUnit unit) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int compareTo(Delayed o) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user