Aa

Text size

?

Map / ArrayList & Data / 7

✏️ Fill in

Add up a file of numbers

Fill the blanks so the program adds every number in steps.txt and prints "total = 18300".

  • hasNextInt()
  • nextInt()
📄 steps.txt — a file the program reads
4200 6100
8000