Groovy web console

subscribe to the feed Subscribe
to this
'null' is less than everything (via #groovywebconsole)
tweet this snippet Tweet

'null' is less than everything

Published 10 months ago by Lucho with tags null
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
println "null < ${Long.MIN_VALUE}: ${null < Long.MIN_VALUE}" 
println "null < ${Boolean.FALSE}: ${null < Boolean.FALSE}"    
println "false < true: ${false < true}"                      
println "null < new Object(): ${null < new Object()}"             
println "null < null: ${null < null}"                       
def data = ["1", 2, 3L, null, "foo"]                       
println data.sort()