-
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
-
What do you mean exactly? You don't include header files into Java files like you do with C.
-
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;
-
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.