26 |
|
* @bug 4822887 |
27 |
|
* @summary Basic test for Collections.addAll |
28 |
|
* @author Josh Bloch |
29 |
< |
* |
30 |
< |
* @compile -source 1.5 AddAll.java |
31 |
< |
* @run main AddAll |
29 |
> |
* @key randomness |
30 |
|
*/ |
31 |
|
|
32 |
< |
import java.util.*; |
32 |
> |
import java.util.ArrayList; |
33 |
> |
import java.util.Arrays; |
34 |
> |
import java.util.Collection; |
35 |
> |
import java.util.Collections; |
36 |
> |
import java.util.HashSet; |
37 |
> |
import java.util.LinkedHashSet; |
38 |
> |
import java.util.LinkedList; |
39 |
> |
import java.util.List; |
40 |
> |
import java.util.Random; |
41 |
|
|
42 |
|
public class AddAll { |
43 |
|
static final int N = 100; |
44 |
< |
public static void main(String args[]) { |
44 |
> |
public static void main(String[] args) { |
45 |
|
test(new ArrayList<Integer>()); |
46 |
|
test(new LinkedList<Integer>()); |
47 |
|
test(new HashSet<Integer>()); |