how to read text file in java and store it to an arraylist in a method oop code example
Example: examples of java programs that read files and put them into arrays
Scanner scanner = new Scanner(new File("input.txt"));
int [] tall = new int [100];
int i = 0;
while(scanner.hasNextInt())
{
tall[i++] = scanner.nextInt();
}