0

Is there any alternative for split method in java without using any built in functions?

I have tried i dont know i got stuck somewhere ..can anyone help me please?

24th Dec 2020, 6:03 AM
Ƙïã💞
Ƙïã💞 - avatar
5 Answers
24th Dec 2020, 7:02 AM
Krish
Krish - avatar
+ 2
Yes you can do it with a loop.
24th Dec 2020, 6:50 AM
Krish
Krish - avatar
0
@Edgar Diaz without using any in-built functions
24th Dec 2020, 6:52 AM
Ƙïã💞
Ƙïã💞 - avatar
0
@krish how? I tried but it seems not work.
24th Dec 2020, 6:54 AM
Ƙïã💞
Ƙïã💞 - avatar
- 1
I don't understand very well your question but an alternative to split is StringTokenizer https://stackoverflow.com/questions/691184/scanner-vs-stringtokenizer-vs-string-split#:~:text=split()%20compiles%20a%20Regular,to%20operate%20on%20a%20String.&text=One%20important%20difference%20is%20that,but%20StringTokenizer%20never%20does%20it.
24th Dec 2020, 6:33 AM
Edgar DĂ­az
Edgar DĂ­az - avatar