-
Notifications
You must be signed in to change notification settings - Fork 0
Tokenization (Split & Parse)
Roberto Fronteddu edited this page Feb 3, 2026
·
2 revisions
When: Space-separated, CSV, mixed text+numbers Techniques:
- split(" "), split(",")
- Regex: split("\s+")
- Streaming tokenizers: Scanner, StringTokenizer, stringstream
Practice Cases
"10 20 30"
"1,2,3,4"
" -15 42 7 "