Results 1 to 5 of 5
  1. #1
    ashraf shaban is offline Member
    Join Date
    Jun 2008
    Posts
    18
    Rep Power
    0

    Default 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

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,421
    Rep Power
    25

    Default

    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.

  3. #3
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    8

    Default 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.

    also i want to know the usage of getclass() method
    Object (Java 2 Platform SE v1.4.2)
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

  4. #4
    ashraf shaban is offline Member
    Join Date
    Jun 2008
    Posts
    18
    Rep Power
    0

    Default

    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

  5. #5
    ashraf shaban is offline Member
    Join Date
    Jun 2008
    Posts
    18
    Rep Power
    0

Similar Threads

  1. Replies: 2
    Last Post: 07-04-2008, 12:33 PM
  2. JXL Package
    By gaya3 in forum Java Servlet
    Replies: 1
    Last Post: 05-23-2008, 09:03 AM
  3. Package Explorer
    By bilmeze in forum Eclipse
    Replies: 0
    Last Post: 04-04-2008, 08:57 AM
  4. Replies: 1
    Last Post: 12-18-2007, 10:41 AM
  5. Importing package
    By bugger in forum New To Java
    Replies: 5
    Last Post: 11-26-2007, 12:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •