I didn't say it was perfect. ;) The replace stuff is a lot better, most likely.
I used a StringBuffer because string manipulation in Java is quite slow, and by using a buffer I'd circumvent the issue almost completely. cheers, barneyb On 6/14/05, Matthew Small <[EMAIL PROTECTED]> wrote: > That seems like a lot of work. Why instantiate java? > > <cfscript> > dna = "actg"; > newdna = dna; > newdna = replace(newdna,"a","z"); > newdna = replace(newdna,"t","a"); > newdna = replace(newdna,"z","t"); > newdna = replace(newdna,"c","z"); > newdna = replace(newdna,"g","c"); > newdna = replace(newdna,"z","g"); > </cfscript> -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209458 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54