Dias
12/19/2018, 5:00 PMString.toInt()
just an alias for parseInt()
, but String.toIntOrNull()
is custom implementation instead of trycatch implementation of parseInt()? Is it because throwing exceptions in java is heavy or something like that?gildor
12/19/2018, 5:23 PMrobin
12/20/2018, 4:10 PM