What is the reason why that the following Java procedure causes a InputMismatchException error?
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
String input = "hello 12345\n";
Scanner s = new Scanner(input);
s.next("hello ");
}
}
Thank you