Compiler output
prog.java:1: error: class, interface, or enum expected
public static int numberofbits(int no) {
^
prog.java:3: error: class, interface, or enum expected
for (count = 0; no > 0; ++count)
^
prog.java:3: error: class, interface, or enum expected
for (count = 0; no > 0; ++count)
^
prog.java:3: error: class, interface, or enum expected
for (count = 0; no > 0; ++count)
^
prog.java:5: error: class, interface, or enum expected
return count;
^
prog.java:6: error: class, interface, or enum expected
}
^
6 errors
javac failed: errno= return=256 at /usr/local/bin/gruntmaster-compile line 23.