Advertisement
Guest User

Untitled

a guest
Sep 11th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.22 KB | None | 0 0
  1. def sampleMap = [color:'Blue', weight:500, shape:'Circle', thickness:10, price:150]
  2. sampleMap['color'] = 'Red'
  3. sampleMap.'shape' = 'Rectangle'
  4. sampleMap.weight = 200
  5. sampleMap.put('thickness', 5)
  6. sampleMap << [price:99]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement