To remove last N characters from a String in Kotlin, use String.dropLast() method. str1.dropLast(n) remove last n character from the string str1.
確定! 回上一頁