Monday, May 10, 2010

Groovy List<Integer>

List<Integer> list = [5,6,7,8]

list.each({line -> println line})

list.each({println it})

No comments:

Post a Comment