|
-
Nov 5th, 2000, 09:18 PM
#1
Thread Starter
Dazed Member
Can anyone tell me how i could go about adding header files to my app if say i have two classes where one of them
is a main. The sun microsystem online tutoral is great but none of the sample code compiles because they have to headers files included. What would be the proper syntax to
use? import ourclassname
-
Nov 6th, 2000, 05:47 PM
#2
Hyperactive Member
What do you mean exactly? You don't include header files into Java files like you do with C.
"People who think they know everything are a great annoyance to those of us who do."
-
Nov 6th, 2000, 11:37 PM
#3
You import packages (with multiple classes) or import a single class. The current directory is also a "package", so if you do all your code in one directory, all classes are visible. You should group like classes into packages.
import packagename.*;
import singleClass.NameWithoutCLASSExtension;
-
Nov 7th, 2000, 11:28 AM
#4
Thread Starter
Dazed Member
Thank you VirtuallyVB for helping clear up that matter
for me. Im a vb programmer with a small amout of C++
experience,and im trying to gravitate to Java ,so i wasnt to sure how Java treats the linking of classes.
Last edited by Dilenger4; Dec 8th, 2003 at 12:28 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|