Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trycf/0d815c01c773ba2c09e0ea757d34c86a to your computer and use it in GitHub Desktop.
Save trycf/0d815c01c773ba2c09e0ea757d34c86a to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
books = ["Pilgrim at Tinker Creek","Long Day's Journey into Night","We are in a Book!","A Confederacy of Dunces","Pride and Prejudice"];
writeDump(books);
createObject('java','java.util.Collections').Reverse(books);
writeDump(books);
min = createObject('java','java.util.Collections').min(books);
writeDump({"min": min});
max = createObject('java','java.util.Collections').max(books);
writeDump({"max": max});
createObject('java','java.util.Collections').swap(books,0,1);
writeDump(books);
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment