Compiler output
prog.java:5: error: class, interface, or enum expected
static Scanner console = new Scanner(System.in);
^
prog.java:7: error: class, interface, or enum expected
public static void main(String[] args) {
^
prog.java:9: error: class, interface, or enum expected
int b;
^
prog.java:11: error: class, interface, or enum expected
b = console.nextInt();
^
prog.java:12: error: class, interface, or enum expected
a = console.nextInt();
^
prog.java:14: error: class, interface, or enum expected
System.out.println(sum(a,b));
^
prog.java:15: error: class, interface, or enum expected
}
^
prog.java:17: error: class, interface, or enum expected
public static BigInteger sum(int a , int b){
^
prog.java:19: error: class, interface, or enum expected
BigInteger bigB = new BigInteger(String.valueOf(b));
^
prog.java:20: error: class, interface, or enum expected
return bigA.add(bigB);
^
prog.java:21: error: class, interface, or enum expected
}
^
11 errors
javac failed: errno= return=256 at /usr/local/bin/gruntmaster-compile line 23.