imprt java.util.Scanner;//导入类 * Scanner in = new Scanner(System.in);新建对象 * String s = in.nextLine();//调用对象的方法 * int i = in.nextInt(); * double d = in.nextDouble();
12-05
218
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
imprt java.util.Scanner;//导入类 * Scanner in = new Scanner(System.in);新建对象 * String s = in.nextLine();//调用对象的方法 * int i = in.nextInt(); * double d = in.nextDouble();