I want to have a look at how Java implements LinkedList. Where should I go to look at the source code?
The JDK source code is inside the src. zip , this article shows you how to get it on Windows, Ubuntu (Linux) and Mac OSX.
The IDE's built-in Source Editor enables you to view, create, and edit your Java source code. Open the Source Editor window by double-clicking a node in the Projects window, Files window, or Navigator window. Alternatively, you can open the Source Editor by choosing File > New to create a new file.
Go to Windows->Preferences->Java->Installed JREs. Select Browse and navigate to the C:\Program Files\Java\jdk1. 6.0_21 directory. Eclipse will automatically find the source and associate it with the JDK classes.
Install the Java SE Development Kit from http://java.sun.com/javase/downloads/index.jsp.
Once installed, you should find an archive called src.zip
in the top of the JDK installation directory. The Java source code is in there.
The file is java/util/LinkedList.java
.
update: You may also like to visit the online OpenJDK Source repository. See this answer below.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With