You could always go for `val a: Int? = try { parse...
# announcements
t
You could always go for
val a: Int? = try { parseInt(input) } catch (e: NumberFormatException) { null }
as showed here: https://kotlinlang.org/docs/reference/exceptions.html#try-is-an-expression
2