11
Why in the files that are in a Java package I should write the "package" thing in it? It's not indirectly assumed that if it's in the directory, then it's in the package?
I come from the C++ world. I always imported the .h of the classes which I need from other files that use that class (I mean, I want only to "show" the header, not the implementation). But now I'm a bit confused about the imports in Java. How is this done in Java?