Tokenize a string: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 1,701: | Line 1,701: | ||
List tokens = value.split(",") |
List tokens = value.split(",") |
||
writeLine(tokens.join(".")) |
writeLine(tokens.join(".")) |
||
# single line version |
|||
writeLine("Hello,How,Are,You,Today".split(",").join(".")) |
|||
</syntaxhighlight> |
</syntaxhighlight> |
||
{{out}} |
{{out}} |
||
<pre> |
<pre> |
||
Hello.How.Are.You.Today |
|||
Hello.How.Are.You.Today |
Hello.How.Are.You.Today |
||
</pre> |
</pre> |