Justin Yue
05/24/2021, 11:48 PMreadLine()
from the kotlin.io package or to use `Scanner(System.in
)` from the java.io package? I think my personal preference is going the Java route because I feel that returning String?
from readLine()
is something I don't want to deal with. But maybe I'm not using Kotlin's null safety as much as I should be?Matteo Mirk
05/25/2021, 8:02 AMreadLine()?.let { println("a non null input: $it") }
Jiddles
05/25/2021, 1:20 PMMatteo Mirk
05/26/2021, 8:32 AMJustin Yue
05/26/2021, 5:13 PMMatteo Mirk
05/28/2021, 7:19 AM