Page 1 of 1

File naming in Java

Posted: Wed Jan 23, 2008 7:15 am
by serur
The Judge requires that we should have a Main class => the file itself should be called Main.java. Then what should I do if I'm going to write Java solutions for problems X,Y and Z?

Posted: Sun Mar 23, 2008 9:38 pm
by MAK
The file name does not have to be Main.java. The driver class in the file should be named Main. The file name can be anything you want provided that the class Main is not declared public.