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 -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -