Split a string without using split method? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

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 ответов
0
you van use the StringTokenizer class
28th Sep 2018, 7:02 AM
Daniel (kabura)
Daniel (kabura) - avatar
0
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