wood burning stoves*
The moose likes Beginning Java and the fly likes Source of Hashtable / interface question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Source of Hashtable / interface question" Watch "Source of Hashtable / interface question" New topic
Author

Source of Hashtable / interface question

Judy Herilla
Ranch Hand

Joined: Jan 05, 2001
Posts: 89
I know I used an editor a while back that let me dive in to the details of Java source files.
My current one does not automatically dive into source files if they are in .jar or .zip formats. SO...question is, where can I go to look at the source of Hashtable ?
My thing is, I want to see exactly how it is returning an enumeration of keys, from keys(), since enumeration is an interface...I'd like to see what object is being created which is being returned...so that I can undertsand WHERE the hasMoreElements() is being implemented...
If you can answer either question, please reply!
Thanks!!!


SCPJ2
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
In my installation of Sun's JDK 1.4, I have a file called src.zip in the root directory. Perhaps you have a similar file. If so, just unzip it and take a look.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Judy Herilla
Ranch Hand

Joined: Jan 05, 2001
Posts: 89
Thanks! I found a src.jar for JDK1.3_01 that I THINK was installed when I installed Forte - havent used it yet - but it must link you to the details of the standard library files !!!
Thanks!!!
John Dale
Ranch Hand

Joined: Feb 22, 2001
Posts: 399
It contians source, and can be unzipped using popular zip programs (may need to change name to src.zip) or jar utility, if you prefer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Source of Hashtable / interface question