tags:

views:

89

answers:

3

Hi,

I want to ask you a question.I am not sure I will get any answers but I will give it try:)

As the header says, I need a way(e.g a file from sun's website) that contains all the keywords of the java language and also the class names of the java API.I know that there is some way, as the compiler has this list on his disposal but I don't know how to get it.

Any ideas?Thanks on advance.

P.S:Feel free to edit the tags, I dont know what else to add.

+3  A: 

Java keywords. Core Java classes (names in italics are interfaces). Even more classes.

Zed
There are of course quite some classes in packages that are not in that list. `com.sun...` comes to mind.
Bart Kiers
That's because those are not part of the core API.
Zed
@Zed: yes, you're right! +1
Bart Kiers
+2  A: 

The keywords: http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html

And each version of Java will have some different classes. Newer versions will probably have more classes. And in future releases it is possible that deprecated classes will be left out, although that is not very likely to happen quickly because of backwards compatibility.

Bart Kiers
Can you elaborate "the class names will probably differ from platform to platform"?
Pascal Thivent
At least javax.* packages do vary as do cryptography related stuff due to dumb laws in some countries.
Esko
@Pascal Thivent: I was thinking about OS specific stuff. But Zed correctly mentioned the fact that these classes are not part of the public API, so I will edit my answer.
Bart Kiers
Nice...dynamic refreshing of the list is a problem but not critical.At the moment I am ok.
DarkFire21
A: 

Thank you all guys.I admit that I have been ignoring these sites before.Now I can have my job go on.:-)

DarkFire21