fork download
  1. public class Main {
  2. static {
  3. System.out.println("Message");
  4. System.exit(0);
  5. }
  6. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
spoj: The program compiled successfully, but main class was not found.
      Main class should contain method: public static void main (String[] args).
stdout
Standard output is empty