Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

remove white space

//Extenion function
fun String.removeWhitespaces() = replace(" ", "")

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

println(str)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #white #space
ADD COMMENT
Topic
Name
9+3 =