// your code goes here def list = ['Groovy', 'is', 'great!'] println list;println list.last();println list.first();
Standard input is empty
[Groovy, is, great!] great! Groovy
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!