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
There are a lot of resources
- 16
Locked
Comments
- Popular
- New
- Old
You must be signed in to leave a comment
This page doesn't have any comments yet