...although if it isn't, the java compiler will compile it for you. (Provided it can find the .java file in the right place; this is one of the driving reasons that packages and directory structures must match....)
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
I believe you guys are wrong. import is not the c++ equivalent of #include, it is the c++ equivalent of using.
In c++ include tells the compiler where to look for a file containing functions, classes, enumerations, variables and such. In other words we need to include in order to use. java's import however is not necessary to use classes and stuff from a file. It only avoids the need for us to have to type the fully qualified name. What c++ programmers call polluting the namespace.
So the very important question remains. How to include a file, class or package in your Java project. How to make Java compiler aware of it.
Hi dan, welcome to code ranch, I hope you realize that you responded to a thread that's 14 year old. I am not sure if all the original posters are still active on code ranch.