parseInt

fun parseInt(s: String): Int

Safely parse an integer from a java.lang.String.

Return

the java.lang.Integer value, or -1 if the parse failed

Parameters