Groovy web console

subscribe to the feed Subscribe
to this
site

Map Example

Published 2 months ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
Map<String, String> map = new HashMap<String, String>();    
map.put("key1", true);     
map.put("key2", "value2");     
map.put("key3", "value3"); 

println(map.get("key1").getClass().getName());
println(map.get("key2").getClass().getName());
println(map.get("key3").getClass().getName());