java - SPOJ solution submission -


i newbie trying submit solution problem on spoj in java. have written code in java class name graph , file name graph.java. on submission, getting compilation error as:

main.java:18: error: class graph public, should declared in file named graph.java public class graph {         ^ 1 error 

can point out wrong file name?

in spoj java solutions must submitted main.java file contains main method. see "solution test in java" example, states:

the main class of program must called main.


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

visual studio - NuGet Automatic Package Restore when using git submodules -

mysql - How to Link PHP Sub Categories(Pages) Dynamically -