Need help, cant make to work this | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Need help, cant make to work this

I want to enter a sentence, with like 4 words and have each word split in the comandos string arr I cant find how to make it work https://code.sololearn.com/cKsFEQ0DuEJ6/?ref=app

13th Jun 2017, 10:59 AM
Augusto
3 Answers
+ 4
Hi! No need to reinvent the wheel. Just use Split(char delimiter) method to split your string into substrings by the delimiter charachter, passed into the method. https://code.sololearn.com/cQI9yZ15cjOF/?ref=app
13th Jun 2017, 11:59 AM
Aibek T.
Aibek T. - avatar
+ 6
@Augusto Not at all ☺
13th Jun 2017, 12:01 PM
Aibek T.
Aibek T. - avatar
+ 2
@Aibek oh, thanks, i didnt knew about that method, ty
13th Jun 2017, 12:00 PM
Augusto