In this article, you will find a very simple method that will help you to get the last n (1, 2, 3, 4, …) characters from a String in Kotlin. This method is simple, it will just take String and Integer count as a parameter and returns another string containing the last specified number of characters. In […]
Capitalize First Letter of String in Android – Kotlin & Java
If we have a String in Kotlin or in Java in Android and we need to capitalize the first letter of the string, we don’t have any built-in method for the purpose. You can use the following methods to capitalize the first letter of String in Android in both Java & Kotlin. Capitalize First Letter […]