+ 2

What is the code to split multiple items of input in Kotlin ?

I make some code in Kotlin, and now, I'm blocked by a question : What is the code to split multiple items of input in Kotlin ? If you know how to make this, please send a answer with the following code... Thank you very much !

4th May 2018, 11:13 AM
Vincent Philippe
Vincent Philippe - avatar
1 Odpowiedź
+ 1
You could take the items as one string where each different item is separated by a space. You wold then split the string into an array and that’s it.
5th May 2018, 12:46 PM
Freetoast
Freetoast - avatar