Anonymous user
Tokenize a string: Difference between revisions
→{{header|Java}}: Updated the for-loop to use the proper variable name (words - not word).
(→{{header|Go}}: small update for library change) |
(→{{header|Java}}: Updated the for-loop to use the proper variable name (words - not word).) |
||
Line 597:
String words[] = toTokenize.split(",");//splits on one comma, multiple commas yield multiple splits
//toTokenize.split(",+") if you want to ignore empty fields
for(int i=0; i<
System.out.print(
}</lang>
|