📜  来自用户 java 代码示例的 arraylist 输入

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

代码示例2
ArrayList LIST = new ArrayList();
while (sc.hasNextInt()) 
{
    int i = sc.nextInt();
    LIST.add(i);
}