Scanner
a. the data input must contain a newline character at the end of each line, otherwise the
nextLine( ) would keep reading the current line and never end.
b. nextLine( ) cannot be used when there' s no data coming in. It will become ENDLESS.
(Actually, ev
原创
2022-03-21 19:04:12 ·
52 阅读 ·
0 评论