📜  删除空格 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:23.041000             🧑  作者: Mango

代码示例1
//Extenion function
fun String.removeWhitespaces() = replace(" ", "")

// Uses
var str = "This is an example text".removeWhitespaces()

println(str)