Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

kotlin string to int

val mystring: String = "999"
try {
    val parsedValue = mystring.toInt()
    println("The parsed integer value is $parsedInt")
} catch (nfe: NumberFormatException) {
    // not a valid int
}
 
PREVIOUS NEXT
Tagged: #kotlin #string #int
ADD COMMENT
Topic
Name
3+4 =