i want to know how to get classes of a certain package,also i want to know the usage of getclass() method
Printable View
i want to know how to get classes of a certain package,also i want to know the usage of getclass() method
Read the API doc is one way to get all the classes in a package.
Read the API doc is one way to know how to use a method.
For examples, use a Search.
It is done with imports. An import is a brief line of text at the top of the file. It tells the compiler that you want certain packages or methods available.
Object (Java 2 Platform SE v1.4.2)Quote:
also i want to know the usage of getclass() method
thanks but i mean some thing like that
Package[]packages=Package.getPackages();
this statment get packages i am asking about similar statment to get classes of a package
i simply have a task to implement java API DOC