try with ressources and System.in

前端 未结 0 1596
忘了有多久
忘了有多久 2020-12-12 03:22

So my IDE is complaining if I don\'t enclose the Scanner in a try with block, but if I do it this way instead of closing it when it\'s supposed to close (once win = true), i

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