DigitMagazine

Notations for Maps in Groovy

Jun 24th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1.  
  2. def variableKey = "age"
  3. println("Name => " + map.name)
  4. println("Age => " + map[variableKey])
  5. println("List Item 1 => " + map.list[1])
Add Comment
Please, Sign In to add comment