equal
deleted
inserted
replaced
57 for (int i = 0; i < randoms.length; i++) |
57 for (int i = 0; i < randoms.length; i++) |
58 randoms[i] = new Random().nextLong(); |
58 randoms[i] = new Random().nextLong(); |
59 } |
59 } |
60 } |
60 } |
61 final int threadCount = 2; |
61 final int threadCount = 2; |
62 List<RandomCollector> collectors = new ArrayList<RandomCollector>(); |
62 List<RandomCollector> collectors = new ArrayList<>(); |
63 List<Thread> threads = new ArrayList<Thread>(); |
63 List<Thread> threads = new ArrayList<Thread>(); |
64 for (int i = 0; i < threadCount; i++) { |
64 for (int i = 0; i < threadCount; i++) { |
65 RandomCollector r = new RandomCollector(); |
65 RandomCollector r = new RandomCollector(); |
66 collectors.add(r); |
66 collectors.add(r); |
67 threads.add(new Thread(r)); |
67 threads.add(new Thread(r)); |