Compiler output
prog.java:1: error: class, interface, or enum expected
public int minimumSum(n)
^
prog.java:5: error: class, interface, or enum expected
counter1 = n;
^
prog.java:6: error: class, interface, or enum expected
counter2 = n-1;
^
prog.java:7: error: class, interface, or enum expected
int i = n-2;
^
prog.java:8: error: class, interface, or enum expected
while(i>0)
^
prog.java:13: error: class, interface, or enum expected
}
^
prog.java:17: error: class, interface, or enum expected
}
^
prog.java:19: error: class, interface, or enum expected
}
^
prog.java:23: error: class, interface, or enum expected
}
^
prog.java:26: error: class, interface, or enum expected
return minimumSum ;
^
prog.java:27: error: class, interface, or enum expected
}
^
11 errors
javac failed: errno= return=256 at /usr/local/bin/gruntmaster-compile line 23.