string kotlin code example
Example 1: kotlin array
val a: Array<Double> = arrayOf(3.0, 4.5, 8.0, 19.0)
Example 2: Kotlin get char in string
val hello = "Hello World"
// Using get() function
val W = hello.get(6)
// Using indexing
val e = hello[1]
Example 3: kotlin string
val str1 = "Hello, javaTpoint"
val str2 = """Welcome To JavaTpoint"""
Example 4: kotlin long max value
9,223,372,036,854,775,807 (2^63 - 1)