Skip to content

Instantly share code, notes, and snippets.

@nise-nabe
Created March 23, 2014 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nise-nabe/9719911 to your computer and use it in GitHub Desktop.
Save nise-nabe/9719911 to your computer and use it in GitHub Desktop.
import java.util.Map;
import java.util.HashMap;
class Main {
public static void main(String[] args){
for (int i = 0; i < 10000; i++) {
Map<Integer, Integer> m = new HashMap<Integer, Integer>();
for (int j = 0; j < 10000; j++) {
if (!m.containsKey(j)) {
m.put(j, i);
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment