Write here if you have problems with your Java source code
Moderator: Board moderators
- A great helper
- Posts: 251
- Joined: Thu Feb 23, 2006 11:30 pm
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?
- New poster
- Posts: 28
- Joined: Sun Oct 23, 2005 3:44 pm
- Location: Dhaka, Bangladesh
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.