Hơw to create scanner for array string? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hơw to create scanner for array string?

Help for my assignment

16th Dec 2019, 10:31 AM
Syahir Coolz
Syahir Coolz - avatar
2 Answers
+ 1
You mean: How to take user input into array of strings? By using loops, in same way of using scanner object for single string input. Other way: Take a complete string and split into array of string by space.
16th Dec 2019, 12:48 PM
Jayakrishna 🇮🇳
0
Maybe you have tried in SoloLearn and don't work. In the SoloLearn console you have to capture all the input one time. With this kind of code try in other IDE
16th Dec 2019, 2:54 PM
Julio Codesal
Julio Codesal - avatar