fork(4) download
  1. import java.util.Scanner;
  2.  
  3. class Ideone {
  4. public static void main (String[] args) {
  5. Scanner entrada = new Scanner(System.in);
  6. int valor1 = entrada.nextInt();
  7. String texto = entrada.nextLine();
  8. int valor2 = entrada.nextInt();
  9. }
  10. }
Runtime error #stdin #stdout #stderr 0.13s 29336KB
stdin
123
abc
456
stdout
Standard output is empty
stderr
Exception in thread "main" java.util.InputMismatchException
	at java.util.Scanner.throwFor(Scanner.java:864)
	at java.util.Scanner.next(Scanner.java:1485)
	at java.util.Scanner.nextInt(Scanner.java:2117)
	at java.util.Scanner.nextInt(Scanner.java:2076)
	at Ideone.main(Main.java:8)