Concatenating Strings in ColdFusion with Java

Jason Delmore posted an interesting article comparing string concatenation using ColdFusion and Java.

1
2
3
4
5
6
stringbldr = createObject("java", "java.lang.StringBuilder").init();
for (i=1;i<span style="color: #000099;"><=iterations;i++) <span style="color: #000099;">{
stringbldr = stringbldr.append(appendstring);
}</span></span>

<span style="color: #000099;"><span style="color: #000099;">

Here the complete article.

Bookmark and Share
No comments yet.

Leave a comment

XHTML: 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>