SyntaxFix
Write A Post
Hire A Developer
Questions
In Kotlin you can used dropLast() method of the string class. It will drop the given number from string, return a new string
var string1 = "Some Text" string1 = string1.dropLast(1)