Java - Closing Scanner/PrintStream in finally-block which are declared in try-block

后端 未结 0 459
温柔的废话
温柔的废话 2020-12-04 01:01

I am trying to close a Scanner and a PrintStream in a finally-block, which are declared in a try-block. The problem is, if the try-block fails because of an exception, the S

相关标签:
回答
  • 消灭零回复
提交回复
热议问题