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.
我想要做的是当我从文件中读取时,我想跳过包含换行符的行,然后转到下一行。我将如何实现这一目标?下面的代码似乎不起作用。
if(!inputStream.nextLine().contains("\n")) { ... }