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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs