Can you use one scanner object to read more than one file?

前端 未结 0 447
醉酒成梦
醉酒成梦 2021-01-28 05:28

What I\'m wondering is if I can create one Scanner object and with that be able to read one file, finish reading its content, then read another.

So instead of doing this:

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