Honestly, after a while I though this could be just an issue with phrasing. What I was going for was the word "anything". I was tought that there's a big difference between "all" and "any". Like in methods "allMatch" and "anyMatch". And my initial idea was that you just pick any arbitrary char and split.
View all comments
Show parent comment
-2
u/DrGrimmWall Dec 28 '21 edited Dec 28 '21
This is wrong. For example 00013222222300 when split by anything other than 0 (this could be 1, 2, 3, m,...) gives a wrong results.