fork download
  1. // your code goes here
  2.  
  3. def list = []
  4.  
  5. println list;
  6. try {
  7. println list.sort{it}.last();
  8. } catch (NoSuchElementException e){
  9. println "yes";
  10. }
  11. println "working";
Success #stdin #stdout 1.28s 332160KB
stdin
Standard input is empty
stdout
[]
yes
working