java - 向字符串添加空行

标签 java android string

如何向字符串添加空行? 这样字符串看起来像这样:

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/

相关文章:

java - 复选框,应用程序崩溃,不知道为什么

java - 在MainActivity java中,如何直接调用anko类?

mysql - 从字符串中保存的表名中选择

javascript - 判断一个字符串是否只包含另一个字符的函数

java - 为什么以及如何在 Java 中的构造函数不初始化的情况下初始化实例变量?

java - 检查 weblogic 服务器中 spasfic 组内的用户是否有 Web 服务应用程序

java - JPA 默认获取类型

java - 如何从 byte[] 创建 XWPFDocument?

android - Kotlin Gradle 问题

c - 二进制搜索单词词典