Skip to content

Instantly share code, notes, and snippets.

@rkhmelyuk
Created August 4, 2011 09:34
Show Gist options
  • Save rkhmelyuk/1124841 to your computer and use it in GitHub Desktop.
Save rkhmelyuk/1124841 to your computer and use it in GitHub Desktop.
a = null
b = 12
println "a.compareTo(b) = " + (a <=> b)
println "a.compareTo(a) = " + (a <=> a)
println "b.compareTo(b) = " + (b <=> b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment