Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Groovy String Tokenize Examples

The String class in Groovy has the tokenize() method as a convenient way to tokenize a String or character sequence and return the result as List of String. The given String or character sequence is delimited by whitespace as a default, or can be used passing delimiter as a paramater. Below are some examples on how to use Groovy String's tokenize() method.



This post first appeared on Grails Cookbook, please read the originial post: here

Share the post

Groovy String Tokenize Examples

×

Subscribe to Grails Cookbook

Get updates delivered right to your inbox!

Thank you for your subscription

×