Closing a Java Scanner object made during constructor chaining

后端 未结 0 1890
清酒与你
清酒与你 2020-12-04 13:37

I\'m using constructor chaining, and I\'m worried that it\'s causing a resource leak. Here are my two constructors:

/**
 * Constructor to build the map based          


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