# | Line 10 | Line 10 | import java.util.Collection; | |
---|---|---|
10 | import java.util.Comparator; | |
11 | import java.util.List; | |
12 | import java.util.Set; | |
13 | – | import java.util.HashSet; |
13 | import java.util.concurrent.Callable; | |
14 | import java.util.concurrent.CompletionService; | |
15 | import java.util.concurrent.ExecutionException; | |
# | Line 72 | Line 71 | public class ExecutorCompletionService9T | |
71 | ArrayList<Integer> results; | |
72 | ||
73 | void use(Integer x) { | |
74 | < | if (results == null) results = new ArrayList<Integer>(); |
74 | > | if (results == null) results = new ArrayList<>(); |
75 | results.add(x); | |
76 | } | |
77 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |