Results 1 to 4 of 4
  1. #1
    yuval is offline Member
    Join Date
    Apr 2013
    Posts
    5
    Rep Power
    0

    Default question in java

    hi everybody!
    I have a question.
    If I did a a class and I want to use it in a main class do I need to import it ?
    I will glad to get an answer soon

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,830
    Rep Power
    19

    Default Re: question in java

    Yes, unless it is in the same package as the main class.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    yuval is offline Member
    Join Date
    Apr 2013
    Posts
    5
    Rep Power
    0

    Default Re: question in java

    How do I do import?
    Suppose the class i wont to import have the name "Product"?

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,830
    Rep Power
    19

    Default Re: question in java

    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Java question.
    By immortal in forum New To Java
    Replies: 8
    Last Post: 08-07-2012, 03:49 AM
  2. Hello I have a question about map java
    By yoron1234567 in forum Forum Lobby
    Replies: 2
    Last Post: 03-14-2012, 04:14 PM
  3. Java question?
    By Zeronitic in forum New To Java
    Replies: 1
    Last Post: 02-21-2012, 08:35 PM
  4. Java Question [Beginner Question]
    By joker760 in forum New To Java
    Replies: 3
    Last Post: 12-13-2011, 04:01 PM
  5. Java Question :D
    By thisisIT in forum New To Java
    Replies: 6
    Last Post: 03-12-2010, 04:04 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
  •