Board index » jbuilder » Beginner in Java

Beginner in Java


2005-03-10 08:52:25 AM
jbuilder4
Hi There,
Is possible to call an external Java class or classes within another Java
application?
ex:
Sample1.java -- runnable/standalone
Sample2.java --runnabl/standalone
Sample3.java would need to call to Sample1.java and Sample2.java when is
executed.
Sample3 does not rely on any inputs from neither Sample1 and Sample2.
Thanks,
Lisa,
 
 

Re:Beginner in Java

Tom wrote:
Quote
Hi There,

Is possible to call an external Java class or classes within another Java
application?

ex:

Sample1.java -- runnable/standalone
Sample2.java --runnabl/standalone

Sample3.java would need to call to Sample1.java and Sample2.java when is
executed.

Sample3 does not rely on any inputs from neither Sample1 and Sample2.


Thanks,

Lisa,


You need to import those classes, then you can use them.
This is the relevent page from a reasonably good tutorial for newbies.
java.sun.com/developer/onlineTraining/new2java/divelog/part1/page3.jsp
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
www.google.ca/advanced_group_search
Other Newsgroup Searches:
www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
www.visi.com/~gyles19/fom-serve/cache/1.html