Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以逐字读取文本文件(即不使用拆分)?. 我可以使用扫描仪对象直接使用 nextLine() 逐行读取,但是当我尝试使用 next() 时出现错误。提前致谢。