Answers for "kotlin string to char array"

1

kotlin string to char array

val _str: String = "Fahim"
var _charAr: CharArray = _str.toCharArray()
Posted by: Guest on August-09-2021
1

kotlin chararray to string

val result: String = chars.joinToString("");
Posted by: Guest on May-24-2020
3

kotlin convert string to char array

val str = "abcd"
val array: Array<String> = str.toCharArray().map { it.toString() }.toTypedArray()
Posted by: Guest on May-20-2021

Browse Popular Code Answers by Language