fork download
  1. // your code goes here
  2.  
  3. def list = []
  4.  
  5. println list;
  6. println list.sort{it}.last();
  7. println working
Runtime error #stdin #stdout #stderr 1.44s 333248KB
stdin
Standard input is empty
stdout
[]
stderr
Caught: java.util.NoSuchElementException: Cannot access last() element from an empty List
java.util.NoSuchElementException: Cannot access last() element from an empty List
	at prog.run(prog.groovy:6)