DEV Community


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

shadowtime2000 profile image

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.