android kotlin string to int on empty string code example Example: parse an int in kotlin val int = text.toInt()