DigitMagazine

List example Groovy

Jun 24th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. //Lists can hold any values
  2. def mixedBag = ["Agnibha", 26, 'M', [1, 2, 3]]
  3. println("MixedBag => " + mixedBag.toListString())
  4. println("2Dim List Value => " + mixedBag[3][1])
Add Comment
Please, Sign In to add comment