Getting and setting values in a hash map
The following code sets and gets String values from a HashMap:
var strs = new HashMap<String, String>(){"aKey" -> "aValue", "bKey" -> "bValue"}
strs.put("cKey", "cValue")
var valueForCKey = strs.get("cKey")
You can write this code in the more natural index syntax using Gosu shortcuts:
var strs = new HashMap<String, String>(){"aKey" -> "aValue", "bKey" -> "bValue"}
strs["cKey"] = "cValue"
var valueForCKey = strs["cKey"]
