fork download
  1. class Pass2 {
  2. public void main(String [] args) {
  3. int x = 6;
  4. Pass2 p = new Pass2();
  5. p.doStuff(x);
  6. System.out.print(" main x = " + x);
  7. }
  8.  
  9. void doStuff(int x) {
  10. System.out.print(" doStuff x = " + x++);
  11. }
  12. }
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