📜  如何在java代码示例中获取多个整数输入

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

代码示例2
Scanner scanner = new Scanner(System.in);

    while(scanner.hasNext())
    {
        System.out.println(scanner.nextInt());
    }