groovy copy array literal code example Example: array in groovy def birdArr = ["Parrot", "Cockatiel", "Pigeon"] as String[]