How do you get a specific character from a string in Kotlin?

To get character at specific index of String in Kotlin, use String. get() method . Given a string str1 , and if we would like to get the character at index index in the string str1 , call get() method on string str1 and pass the index index as argument to the method as shown below.

Sizin İçin Seçtik  Holo hangi şirketin?

Leave a Reply

Your email address will not be published. Required fields are marked *