fork download
  1.  
  2.  
  3. public class SolveMeFist {
  4. static int solveMeFirst(int a, int b) {
  5. // Hint: Type return a+b; below
  6. return a + b;
  7. }
  8.  
  9. public static void main(String[] args) {
  10. Scanner in = new Scanner(System.in);
  11. int a;
  12. a = in.nextInt();
  13. int b;
  14. b = in.nextInt();
  15. int sum;
  16. sum = solveMeFirst(a, b);
  17. System.out.println(sum);
  18. }
  19. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:3: error: class SolveMeFist is public, should be declared in a file named SolveMeFist.java
public class SolveMeFist {
       ^
Main.java:10: error: cannot find symbol
        Scanner in = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class SolveMeFist
Main.java:10: error: cannot find symbol
        Scanner in = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class SolveMeFist
3 errors
stdout
Standard output is empty