问题
I need to look at the source code of HashMap.java of JDK version 1.6.0_19. I searched the web but could not find anywhere. Any pointers is highly appreciated.
Thanks.
回答1:
Download that version of the JDK. The source code is provided in a src.zip file.
回答2:
http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/util/HashMap.java
回答3:
Try here: http://hg.openjdk.java.net/jdk6/jdk6
回答4:
http://www.docjar.com/html/api/java/util/HashMap.java.html
回答5:
Agree to the "download jdk", if you want to see it in your eclipse, you can edit it as the source of the jdk, then when you type HashMap, press F3, you will go to the HashMap.java.
来源:https://stackoverflow.com/questions/9437932/source-code-of-hashmap-java