how to connect classes in java in the same package code example Example: java file package import import java.io.File;