DEV Community

loading...

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

Collapse
shadowtime2000 profile image
shadowtime2000

From my knowledge (which isn't as in depth), I believe the organization of your file structure in Java has little to nothing to do with how you import them. If you want to be able to import another file you have to declare what package it is in and then import it from there. I don't use Java that much, so there is probably something that I am missing.