📜  如何在java代码示例中读取整数后的字符串

📅  最后修改于: 2022-03-11 14:52:48.704000             🧑  作者: Mango

代码示例1
myInt = scan. nextInt();
myDouble = scan. nextDouble();
scan. nextLine(); // Skip the remainder of the double line.
myString = scan. nextLine();