以下 Java 过程导致 InputMismatchException 错误的原因是什么?
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 ");
}
}
谢谢