📅  最后修改于: 2022-03-11 14:52:26.704000             🧑  作者: Mango
Scanner scanner = new Scanner(new File("input.txt"));
int [] tall = new int [100];
int i = 0;
while(scanner.hasNextInt())
{
tall[i++] = scanner.nextInt();
}