import java.io.File; public class FilePackage { public static void main (String[] args){ System.out.println(File.class.getPackage()); } } |
program-id. FilePackage. configuration section. repository. class JClass as "java.lang.Class" class JFile as "java.io.File" class JSystem as "java.lang.System" . procedure division. main. try JSystem:>out:>println (JClass:>forName("java.io.File"):>getPackage()) catch exception exception-object:>printStackTrace() end-try. goback. |