Mega Code Archive

 
Categories / Java Book / 002 Class
 

0156 Java package maps to directory

A Short Package Example package MyPack; public class Main { public static void main(String args[]) { System.out.println("hi"); } } Then try executing the class, using the following command line: java MyPack.Main