How to import your custom class in Java code example Example: java file package import import java.io.File;