94 |
|
sum -= (s2.get(k)).intValue(); |
95 |
|
} |
96 |
|
if (sum == 0) System.out.print(" "); |
97 |
< |
} |
97 |
> |
} |
98 |
|
|
99 |
|
static void sets(List<Integer> s1, List<Integer> s2) { |
100 |
|
List<Integer> intersection = clone(s1, cl,synch);intersection.retainAll(s2); |
159 |
|
while(it.hasNext()) |
160 |
|
if((it.next()).intValue() % 2 == 1) |
161 |
|
fail("Failed to remove all odd nubmers."); |
162 |
< |
|
162 |
> |
|
163 |
|
for (int i=0; i<(listSize/2); i++) |
164 |
|
odd.remove(i); |
165 |
|
for (int i=0; i<(listSize/2); i++) { |
173 |
|
all.add(2*i, even.get(i)); |
174 |
|
if (!all.equals(s)) |
175 |
|
fail("Failed to reconstruct ints from odds and evens."); |
176 |
< |
|
176 |
> |
|
177 |
|
all = clone(odd, cl, synch); |
178 |
|
ListIterator<Integer> itAll = all.listIterator(all.size()); |
179 |
|
ListIterator<Integer> itEven = even.listIterator(even.size()); |