x = 1..3y = x.iterator(); println y.next();println y.next();println y.next();println y.next();
Standard input is empty
1 2 3 null
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!