how to access public data from another packeage in java code example Example: java file package import import java.io.File;