fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. int a, b, suma;
  13.  
  14. Scanner es = new Scanner(System.in);
  15.  
  16. System.out.println("Introduce el primer número:");
  17. a = es.nextIng();
  18.  
  19. System.out.println("Introduce el segundo número:");
  20. b= es.nextIng();
  21.  
  22. suma = a+b;
  23.  
  24. System.out.println("La suma de los numeros es: " +suma);
  25. // your code goes here
  26. }
  27. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:17: error: cannot find symbol
		a = es.nextIng();
		      ^
  symbol:   method nextIng()
  location: variable es of type Scanner
Main.java:20: error: cannot find symbol
		b= es.nextIng();
		     ^
  symbol:   method nextIng()
  location: variable es of type Scanner
2 errors
stdout
Standard output is empty