Groovy web console

subscribe to the feed Subscribe
to this
site

Sample list

Published 2 weeks ago by nelson lopez with tags collections
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
// Nelsons sample to show how to use this web tgool to learn Groovy
// working with Colelctions See http://docs.groovy-lang.org/next/html/documentation/working-with-collections.html


list = ['a', 'b', 'c'] 
list.each { val -> 
  println "my list item= $val"
}

// excute the above and click on the output tab