Join Slack
Communities
Powered by
<@UA47DJYDP> The `readLine` function returns `Stri...
# getting-started
m
marstran
04/11/2018, 1:57 PM
@Surya Poojary
The
readLine
function returns
String?
. You need to check for null with this:
readLine()?.toInt()
. This will set
age
to null if
readLine
returns null.
4
Views
Open in Slack
Previous
Next