Reading time: 1 – 2 minutes

As everybody knows, this Blog should show my studies integrating CFML with other technologies.
Today I was playing with the Java class arrayList() and at some point I generated this code:
Java Tokenize

This class responsibility is to take a string and break it using spaces as delimiter. To run this example, I just needed to instantiate the object and pass my string like this:

<cfset tmp = createObject("Java","token") />
<cfset tmp = tmp.setTokenize("ColdFusion with Placona.co.uk") />
<cfdump var="#tmp#"/>

Now you should be asking yourself:
“Why do I need this code if I have the function listToArray?”

Good question… just studies…

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>