Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def sampleMap = [color:'Blue', weight:500, shape:'Circle', thickness:10, price:150]
- sampleMap['color'] = 'Red'
- sampleMap.'shape' = 'Rectangle'
- sampleMap.weight = 200
- sampleMap.put('thickness', 5)
- sampleMap << [price:99]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement