+ 8
User Input in Kotlin
With the recent addition of Kotlin to the code playground (kind of), I've been interested in learning how to code with it. Having never used Kotlin before and finding Google not very helpful, I was just wondering if there was a way to take user input and possibly convert it to different data types. Thanks in advance!
5 ответов
+ 5
Kotlin is just a another syntax for Java. So do what you would do in Java:
Scanner(System.in)
+ 15
its working only in test version
+ 2
It doesn't seem to be working for some reason :/
Do you think it may just be an issue with the code playground?
+ 2
Oh okay, thanks!
+ 1
Good news!
Kotlin is now live in SoloLearn!
https://www.sololearn.com/Discuss/1319472/?ref=app
https://www.sololearn.com/learn/7792/?ref=app