23 |
|
static final int numTests = 2; |
24 |
|
|
25 |
|
public static void main(String[] args) { |
26 |
< |
Class collectionClass = null; |
26 |
> |
Class<?> collectionClass = null; |
27 |
|
try { |
28 |
|
collectionClass = Class.forName(args[0]); |
29 |
|
} catch (ClassNotFoundException e) { |
40 |
|
|
41 |
|
} |
42 |
|
|
43 |
< |
static void tests(Class collectionClass, int numTests, int sizeIndex) { |
43 |
> |
static void tests(Class<?> collectionClass, int numTests, int sizeIndex) { |
44 |
|
try { |
45 |
|
String[] key = readWords(sizeIndex); |
46 |
|
int size = key.length; |
64 |
|
} |
65 |
|
|
66 |
|
|
67 |
< |
static Collection<String> newCollection(Class cl) { |
67 |
> |
static Collection<String> newCollection(Class<?> cl) { |
68 |
|
try { |
69 |
|
Collection m = (Collection<String>) cl.newInstance(); |
70 |
|
return m; |