In Groovy, a map has the following syntax: def a = [key1: value1, key2: value2] Keys and values can be of any type. Listing 2-8 illustrates the basics of ...
確定! 回上一頁