DEV Community

loading...

Discussion on: Can I import local class files in Java, like you can Python?

Collapse
baenencalin profile image
Calin Baenen Author

It's not in the same folder. customclass is in a folder below the package.

Like this:

package:
    example.java // I want to import files from subpackage here.
    subpackage:
        // Files....
Enter fullscreen mode Exit fullscreen mode