# | Line 102 | Line 102 | public class StringMapLoops { | |
---|---|---|
102 | ||
103 | static void test(int i, int nkeys, String[] key, Class<?> mapClass) throws Exception { | |
104 | System.out.print("Threads: " + i + "\t:"); | |
105 | < | Map<String, String> map = (Map<String,String>)mapClass.newInstance(); |
105 | > | Map<String, String> map = |
106 | > | (Map<String,String>) mapClass.getConstructor().newInstance(); |
107 | // Uncomment to start with a non-empty table | |
108 | // for (int j = 0; j < nkeys; j += 4) // start 1/4 occupied | |
109 | // map.put(key[j], key[j]); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |