Hi,
I don't understand about packages and classpaths. In C++, we can put code into namespaces, and that makes a grouping for the code. That I understand.
With
Java, somehow packages have to do with file directories.
If I have a physical directory named /code/project with files in it, and subdirectories with more files, like /code/project/drivers and /code/project/filestuff, what package would I use in the java files? Would I use different packages in the java files in the subdirectories? If it's optional, why would I choose one way or the other?
That last question is probably the most important - why would I put my code into packages? When would I bother, and how should I decide?
Thanks in advance for any help.
regards,
Bret