From: Paul Smith Date: 2009-10-14T19:14:48+09:00 Subject: Re: how to solve a special JRuby and Java syntax conflict? On Wed, Oct 14, 2009 at 11:10 AM, Paul Smith wrote: > On Wed, Oct 14, 2009 at 10:51 AM, Axel Etzold wrote: >> >> -------- Original-Nachricht -------- >>> Datum: Wed, 14 Oct 2009 06:19:01 +0900 >>> Von: "Walton Hoops" >>> An: ruby-talk@ruby-lang.org >>> Betreff: Re: how to solve a special JRuby and Java syntax conflict? >> >>> Axel Etzold wrote: >>> > Dear Paul, >>> > >>> > thank you for responding. However, I am not looking for a way of >>> > dealing >>> > with a Matrix as such ( there would be no need to use Java for it), >>> > but I need to talk to a specific implementation of Matrix methods in >>> > Java. >>> > >>> > I can do that nicely in JRuby, since the latter is basically Ruby 1.8.6 >>> > implemented in Java (rather than in C), but I have this syntax issue: >>> > >>> > I want to use a Java class from JRuby (that's in principle possible), >>> > but my JRuby script reads the definition with the curly brackets as >>> > a Hash (Ruby syntax), and I am searching for a way to prevent that. > > Have you tried [[1,2,3],[2,3,4]].to_java ? Maybe you should try posting your question to one of the resource available from http://jrubyhub.com