Groovy web console

subscribe to the feed Subscribe
to this
site

ProofIT_Map_List_String_Operations

Published 3 weeks ago by Jurgis Sipols
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
/*
    1. Define a Map structure that holds String keys and values (key -> value):
        Bob -> Stanley
        Alice -> Cooper
        Bobby -> Terminator
        Cat -> Mouse
        Bobcat -> Forest
    2. By using this structure, get a String List of values that have keys starting with "Bob"
    3. Append these String values in a single String by joining them with ", " and print the result in a single line
*/