Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-08-2008, 07:46 PM
Member
 
Join Date: Jun 2008
Posts: 19
ashraf shaban is on a distinguished road
get classes of a certain package
i want to know how to get classes of a certain package,also i want to know the usage of getclass() method
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-08-2008, 07:58 PM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Heredia, Costa Rica
Posts: 2,223
Norm is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-08-2008, 08:50 PM
Nicholas Jordan's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 789
Nicholas Jordan is on a distinguished road
use imports
Quote:
Originally Posted by ashraf shaban View Post
i want to know how to get classes of a certain package
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.

Quote:
also i want to know the usage of getclass() method
Object (Java 2 Platform SE v1.4.2)
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 07-08-2008, 08:56 PM
Member
 
Join Date: Jun 2008
Posts: 19
ashraf shaban is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 07-08-2008, 09:20 PM
Member
 
Join Date: Jun 2008
Posts: 19
ashraf shaban is on a distinguished road
i simply have a task to implement java API DOC
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically add method to all classes in package skaspersen Eclipse 2 07-04-2008 02:33 PM
JXL Package gaya3 Java Servlet 1 05-23-2008 11:03 AM
Package Explorer bilmeze Eclipse 0 04-04-2008 10:57 AM
can't use classes in own package ... cannot be resolved into a type doood123 New To Java 1 12-18-2007 12:41 PM
Importing package bugger New To Java 5 11-26-2007 02:29 PM


All times are GMT +3. The time now is 01:44 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org