Groovy web console

subscribe to the feed Subscribe
to this
site
fiona01 (via #groovywebconsole)
tweet this snippet Tweet
this
script

fiona01

Published 8 months ago by Dad with tags learning
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
Map<String> a = [fred:"this is a",b:"this is b"];
List<String> b = [ "a","b" ];

println a.fred;
println a.b;

println b[0];
println b[1];

for(int i = 0;i<b.size();i++)
{
    println b[i];
}