Release Scanner Resource using finally

# Introduction In this challenge, we will release the memory space allocated by the Scanner object using the `finally` clause in the exception handling structure. This is to ensure that the resource of the Scanner object is properly closed and memory is released in a timely manner. The goal is to prevent the Scanner object from occupying unnecessary memory space, thus optimizing performance.

|60 : 00

Click the virtual machine below to start practicing