Answers for "delete whitespaces"

CSS
0

remove whitespaces

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

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

println(str)
Posted by: Guest on July-28-2021

Code answers related to "delete whitespaces"

Browse Popular Code Answers by Language