Subash Chandran posted: "fun main(args: Array<String>) { for (str in args) { try { val parsedInt = str.toInt() println("The parsed int is $parsedInt") } catch (nfe: NumberFormatException) { // not a valid int"
|

No comments:
Post a Comment
Note: Only a member of this blog may post a comment.