Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trycf/aa08c8e3eae08360b6efc2149c8cb84d to your computer and use it in GitHub Desktop.
Save trycf/aa08c8e3eae08360b6efc2149c8cb84d to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
s = "abc"
s.each((c)=>{
//writeoutput(c.ucase()) // The ucase method was not found
writeOutput("#c.getClass().getName()#<br>") // java.lang.Character
writeOutput("#c.toString().ucase()#<br>") // sigh
})
writeOutput("<hr>")
a = s.split("")
c = a[1]
writeOutput("#c.ucase()#: #c.getClass().getName()#<br>") // A: java.lang.String
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment