Compiler output
prog.java:5: error: ';' expected
public static void main(String[] args)
^
prog.java:9: error: <identifier> expected
System.out.print(numarBun);
^
prog.java:9: error: <identifier> expected
System.out.print(numarBun);
^
prog.java:14: error: class, interface, or enum expected
public static int minimumSum(n)
^
prog.java:18: error: class, interface, or enum expected
counter1 = n;
^
prog.java:19: error: class, interface, or enum expected
counter2 = n-1;
^
prog.java:20: error: class, interface, or enum expected
int i = n-2;
^
prog.java:21: error: class, interface, or enum expected
while(i>0)
^
prog.java:26: error: class, interface, or enum expected
}
^
prog.java:30: error: class, interface, or enum expected
}
^
prog.java:32: error: class, interface, or enum expected
}
^
prog.java:36: error: class, interface, or enum expected
}
^
prog.java:39: error: class, interface, or enum expected
return minimumSum ;
^
prog.java:40: error: class, interface, or enum expected
}}
^
14 errors
javac failed: errno= return=256 at /usr/local/bin/gruntmaster-compile line 23.