Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > import

Reply
Thread Tools

import

 
 
Nishi Bhonsle
Guest
Posts: n/a
 
      01-14-2004

I have a public class Summary containing all public methods under
C:\adc\source\java\Impl1\test\source\dev\code\prog 1\

which I need to instantiate and call its methods in the NewTest class under

C:\adc\source\java\Impl2\test\dev\code\prog2\

Can I just import the Summary class in NewTest and then instantiate it and call its methods?
(import Impl2.test.dev.code.prog2.*


Thanks.

 
Reply With Quote
 
 
 
 
Tony Morris
Guest
Posts: n/a
 
      01-14-2004
Yes.
Try It And See(TM)

--
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software
(2003 VTR1000F)


"Nishi Bhonsle" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> I have a public class Summary containing all public methods under
> C:\adc\source\java\Impl1\test\source\dev\code\prog 1\
>
> which I need to instantiate and call its methods in the NewTest class

under
>
> C:\adc\source\java\Impl2\test\dev\code\prog2\
>
> Can I just import the Summary class in NewTest and then instantiate it and

call its methods?
> (import Impl2.test.dev.code.prog2.*
>
>
> Thanks.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
to use import java.lang.* or import java.lang.Math or none at all? JPractitioner Java 13 02-24-2006 08:48 PM
XML Schema question - does "import" import elements? Vitali Gontsharuk XML 2 08-25-2005 07:33 PM
IMPORT STATIC; Why is "import static" file scope? Why not class scope? Paul Opal Java 12 10-10-2004 11:01 PM
GTK import doesn't import first time Dennis Python 2 08-18-2003 10:00 PM
import/from import question Artur M. Piwko Python 1 07-02-2003 07:04 PM



Advertisments