如何向字符串添加空行? 这样字符串看起来像这样:
This is an example of something
This is still an example of something
变成这样:
This is an example of something
This is still an example of something
最佳答案
"This is an example of something\n\nThis is still an example of something"
关于java - 向字符串添加空行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16090561/