[Solved] Arrays and Collection with Groovy [closed]
Something like this should do it: def arr = [] def al = [] for (i in 1..3) { arr = [] arr[0] = 1 //some value arr[1] = 2 //some value al.add(arr) } println al[0][1] 1 solved Arrays and Collection with Groovy [closed]