优点进阶3期训练营
2022-11-12 17:19 作者:bili_1559000721 | 我要投稿
import java.util.Random;import java.util.concurrent.CountDownLatch;public class Main {
public static void main(String[] args) throws InterruptedException {
CountDownLatch latch = new CountDownLatch(10);
for (int i = 0; i < 10; i++) {
int finalI = i;
new Thread(() -> {
int second = new Random().nextInt(10);
try {