Skip to content

Instantly share code, notes, and snippets.

@akm
Last active December 8, 2015 05:55
Show Gist options
  • Save akm/9d095abb76a254c7a78c to your computer and use it in GitHub Desktop.
Save akm/9d095abb76a254c7a78c to your computer and use it in GitHub Desktop.
JRubyの多次元配列をjavaの多次元配列に変換する方法 ref: http://qiita.com/akm/items/40d3f69960d99746d450
irb(main):034:0> [[1,2,3]].to_java(Java::byte[])
=> [B[[B@436a4e4b]@f2f2cc1
irb(main):035:0> [[[1,2,3]]].to_java(Java::byte[][])
=> [[B[[[B@3b2cf7ab]@2aa5fe93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment