Results 1 to 5 of 5
  1. #1
    tyang is offline Member
    Join Date
    Jan 2010
    Posts
    44
    Rep Power
    0

    Default How to import a Java package?

    Can anyone help me with this? Thanks a lot!
    How to import a Java package? Please tell me the detailed procedure.:rolleyes:

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Get Sun's (Oracle) java tutorial and read it from the start.

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by r035198x View Post
    Get Sun's (Oracle) java tutorial and read it from the start.
    ++

    Yep, it's all there. Please go through it, and then come back if you don't understand any of it.

  4. #4
    mindblaster's Avatar
    mindblaster is offline Member
    Join Date
    Dec 2009
    Location
    Pakistan
    Posts
    18
    Rep Power
    0

    Default

    package yourpackagename;
    Any fool can write code that a computer can understand. Good programmers write code that humans can understand.

  5. #5
    [RaIdEn] is offline Senior Member
    Join Date
    Oct 2009
    Location
    California,US
    Posts
    201
    Rep Power
    6

    Default

    for your defined package it is

    Java Code:
    package packagename;
    at the 1st line of your code.

    for java package

    Java Code:
    import javapackagename;

Similar Threads

  1. Replies: 7
    Last Post: 11-09-2009, 07:51 AM
  2. Eclipse "import not resolved" package problem?
    By spamsickle in forum New To Java
    Replies: 3
    Last Post: 08-24-2009, 11:44 AM
  3. Help Needed to import package
    By gradStudent in forum New To Java
    Replies: 10
    Last Post: 08-11-2009, 01:37 AM
  4. How to import a package before it is compiled
    By gradStudent in forum Advanced Java
    Replies: 1
    Last Post: 08-11-2009, 12:17 AM
  5. How to import a package in Eclipse?
    By naipulb in forum New To Java
    Replies: 2
    Last Post: 06-09-2008, 11:04 AM

Posting Permissions

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