Originally posted by kap kumar:
thats rite, it is from a book.
Can you tell me some standard package that i can try?
thanks
Well, that depends on what you want to do. There are several hundred standard packages. Here are some of the most common, at least from the Java coding I do:
java.lang - contains classes that Java uses under the hood (e.g. ClassLoader, Class, etc.) and some that are considered part of the language (e.g.
String); you don't need to import this package
java.util - contains the Collections Framework; this includes classes like Vector, ArrayList, HashMap, and TreeMap, to name a few
javax.swing - classes for developing GUI applications with Swing
java.awt - classes for developing GUI applications with the Abstract Windowing Toolkit (AWT)
There are so many more that I don't dare even try to list them here. However sun has documented them very well. As you learn how to program in Java,
you should familiarize yourself with the
Java API documentation. Use this link to find the docs for the version of Java that you are using. When you click on the link to the docs for the appropriate version, the available packages are listed in the frame in the top left corner.
Layne