Answers for "kotlin string"

0

Kotlin get char in string

val hello = "Hello World"

    // Using get() function
    val W = hello.get(6)

    // Using indexing
    val e = hello[1]
Posted by: Guest on October-27-2020
0

kotlin string

val str1 = "Hello, javaTpoint"  
val str2 = """Welcome To JavaTpoint"""
Posted by: Guest on March-03-2021
-1

kotlin string length

val hello = "Hello World"
    
    // Use .length to get length of string
    val stringLength = hello.length
Posted by: Guest on October-27-2020

Browse Popular Code Answers by Language