yes, you need the public static void main(String args[]) to run the program.