How would I utilize a scanner in java to determine if a line contains a certain character, then read the next lines and input them into an object?

前端 未结 0 493
既然无缘
既然无缘 2021-01-22 06:01

The text file looks something like:

# John Doe
2000
40
-Jane Doe
70
-Alex Smith
40

This is the code snippet which seems to return a java.util.Sca

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