Closing a Scanner that reads a String

后端 未结 0 1648
一个人的身影
一个人的身影 2021-02-05 09:52

I have this code (i can be very large):

for (int i = 0; i < 100_000_000; i++)  {
  Scanner scanner = new Scanner("Some String");
  scanner.close(); /         


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