Multidimensionnal arrays are created as arrays of arrays. See a simple array of strings :
Code:
//create
def tools = ["whip","cane","paddle"]
//replace "cane" with "stick"
tools[1] = "stick"
//get one, the second one
showPopup(tools[1])
//iterate (read all)
for(def tool : tools)
showPopup(tool)
Now a 2-dimensions array, that is an array of array of strings :
Code:
def tools2 = [["whip","cane","paddle"],["whips","canes","paddles"]]
tools2[0][1] = "stick"
tools2[1][1] = "sticks"
showPopup(tools2[0][1])
//tools2 is an array of array of strings, tools is an array of strings, tool is as string
for(def tools : tools2)
for(def tool : tools)
showPopup(tool)