Split a string without using split method? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson

Split a string without using split method?

how can we split a string on " " without using split method??

28th Sep 2018, 6:40 AM
Keerttik Titan
Keerttik Titan - avatar
2 Answers
you van use the StringTokenizer class
28th Sep 2018, 7:02 AM
Daniel (kabura)
Daniel (kabura) - avatar
Check my two timestamp code : C++ and C#. C++ is the equivalent of my C# app that uses the split. In C++ I've done the split using a substr(). Try to understand the code and reproduce it. https://code.sololearn.com/cY408ETyxjek/?ref=app
28th Sep 2018, 8:15 AM
Sam Pache
Sam Pache - avatar