Created
August 20, 2022 00:35
-
-
Save trycf/0d815c01c773ba2c09e0ea757d34c86a to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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