Converting two dimensional array to java

Hi,

Is there a way to convert a two dimentional ruby array to java?

I’m using a java class that takes in as argument an int[][].

I know for a one dimentional array I can do a .to_java(:int) on the
array. But that doesn’t work on a 2d array.

Thanks