Kotlin: check if string is numeric

前端 未结 0 483
盖世英雄少女心
盖世英雄少女心 2020-12-28 15:57

Is there a simple way to check if user\'s input is numeric? Using regexes and exceptions seems too complicated here.

fun main {
    val scan = Scanner(System.         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题