read value from array in groovy code example Example: array in groovy def birdArr = ["Parrot", "Cockatiel", "Pigeon"] as String[]