There are a lot of resources

  • 16
  • Locked
The program reads from the console the path to a file, reads lines from the file, and displays them on the screen. Rewrite the code using try-with-resources: create objects that use external resources inside the parentheses. Remember to remove the unnecessary finally block and the calls to the close
You can't complete this task, because you're not signed in.
Comments
  • Popular
  • New
  • Old
You must be signed in to leave a comment
This page doesn't have any comments yet