In input file parsing: hasNext() -> hasNextInt()