mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-07 02:15:58 +00:00
Using try-with-resources if we use Scanner to close the underlying stream is a good practice to handle resources. Minimal refactor.