how to import a class from another package in java code example Example: java file package import import java.io.File;