Two dimensional array

I’m new to multi-dimensional arrays in Java, so I could be doing something dumb, but… the following works in Eclipse with Java, but not in Katalon and I’m wondering why?

	String retval[][] = { { "1", "2" }, { "A", "B" }, { "&", "*" } };

In Katalon I get the error “expecting ‘}’, found ‘=’”

I’ve found the solution, it looks like I need to use Groovy syntax, which appears to be like this…

def retval = [ [ “1”, “2” ], [ “A”, “B” ], [ “&”, “*” ] ] as String[][]