CodingJavaJava SE内置常用API 2023-06-16 Source Edit History Scanner - Java 1new Scanner(System.in); MethodhasNext() 判断是否有输入 nextInt() 接收 int