Answers for "kotlin char array to string"

1

kotlin string to char array

val _str: String = "Fahim"
var _charAr: CharArray = _str.toCharArray()
Posted by: Guest on August-09-2021
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