use multicatch. replace numbers with variable.
make two constants public
replace numbers with constants.  use try-with-resources to close
use diamond inferences
try-with-resources
avoiding null reference