Groovy web console

subscribe to the feed Subscribe
to this
site

simple groovy map stuff

Published 4 months ago by jellycode
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
Map<String, String> mapStaticType = [:]
def mapDynamicType = [:]

mapStaticType["someKey"] = "someValue"
mapDynamicType["someKey"] = "someValue"

println(mapStaticType)
println(mapDynamicType)

mapDynamicType.each{key, value -> println("${key} = ${value}")}

return