Groovy web console

subscribe to the feed Subscribe
to this
site

test

Published 3 months ago by blb with tags blboun
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def myList = [
    "Months" : [
        "Jan" : "January",
        "Feb" : "February",
        "Mar" : "March"
    ],
    "Programming Languages" : [
        "Structured Query Language" : "SQL",
        "Coffe" : "JAVA",
        "Script" : "JS",
        "Java and JS" : "GROOVY"
    ]
]

myList.each { key, keyValues ->
    println( "master key -> " + key )
    keyValues.each { monthOrLanguage, index ->
        println ( "key -> " + monthOrLanguage + ", with value -> " + index )
    }
}