string methods kotlin code example
Example 1: Kotlin get char in string
val hello = "Hello World"
// Using get() function
val W = hello.get(6)
// Using indexing
val e = hello[1]
Example 2: kotlin string
val str1 = "Hello, javaTpoint"
val str2 = """Welcome To JavaTpoint"""