0
how to take inputs by space in kotlin ?
how to take inputs by space in kotlin ?
5 Answers
+ 2
Without a code example, it's hard to understand what you want exactly (other than Tibor's answer).
+ 1
I think you mean something like this:
val words = readLine()!!.split(" ")
println(words)
+ 1
I mean to take inputs that:
when the user entered the first value, he would press space not enter
+ 1
Yes. Have you tried my suggestion?
Please link your program for more detail.
0
yes, I tried it
but i mean another thing