marstran
04/11/2018, 2:09 PMString? means that the string is nullable. The ? in readLine()?.toInt() is a safe call. Here, it means that toInt() won't be called if readLine() returns null. You can read about it here: https://kotlinlang.org/docs/reference/null-safety.html#safe-calls