Question: Rewrite the following program so that is uses try-with-resources to eliminate the calls to close(). Use only one try block.
Rewrite the following program so that is uses try-with-resources to eliminate the calls to close(). Use only one try block.

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
