Computing.Net > Forums > Programming > Java class import help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Java class import help

Reply to Message Icon

Name: priti
Date: March 1, 2004 at 02:22:00 Pacific
OS: ME
CPU/Ram: P3
Comment:

Hi,
How can I import the class files in java?
I have two class files for main program.
e.g hello.java, hi.java are the class files.
I want to use them in Server.java.
How can I make use of those files?
Any help will be greatly appreciated.
Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: gpp
Date: March 1, 2004 at 05:20:21 Pacific
Reply:

Use the import command, but dont forget to put these classes in a package, or you'll get errors...

import mypackage.hello
import mypackage.hi


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Java class import help

java classes www.computing.net/answers/programming/java-classes/14733.html

loading a java class from matlab www.computing.net/answers/programming/loading-a-java-class-from-matlab/13739.html

Help wit a little Java program www.computing.net/answers/programming/help-wit-a-little-java-program-/94.html