fork(4) download
  1. class Class1 {
  2. int total=0;
  3.  
  4. doIt();
  5. }
  6. void doIt() {
  7. for(int i=0;i<5;i++) total += i;
  8. System.out.println(total);
  9. public static void main(String args[]) {
  10.  
  11. (new Class1()).doIt();
  12. }
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Mozart Compiler 1.4.0 (20080704) playing Oz 3

%%% feeding file prog.oz

%*************************** parse error ************************
%**
%** syntax error, unexpected '{', expecting T_end
%**
%** in file "./prog.oz", line 1, column 13
%** ------------------ rejected (1 error)
stdout
Standard output is empty