Aa

Text size

?

Map / ArrayList & Data / 6

🐞 Debug

Say that it can fail

The program should print the first word of words.txt, "hello", but it does not compile. Fix it.

  • throws IOException
  • File
  • Scanner
📄 words.txt — a file the program reads
hello world