Re: JavaCode with static class methods

2017-03-04 Thread Thorsten Jolitz
Alexander Burger writes: Hi Joe, Hi Alex, >> I'm experimenting a bit with the 'java' function, and the StringBuilder >> ... >> (java "java.lang.Math" 'sqrt 4) > > It needs a different call: >: (java "java.lang.Math" 'sqrt (-6 . 64.0)) thanks for the hints, so

Re: JavaCode with static class methods

2017-03-02 Thread Alexander Burger
Hi Thorsten, > I'm experimenting a bit with the 'java' function, and the StringBuilder > ... > (java "java.lang.Math" 'sqrt 4) It needs a different call: : (scl 6) -> 6 : (java "java.lang.Math" 'sqrt (-6 . 64.0)) -> 800 : (round @) -> "8.000" As you probably know, the

Re: JavaCode with static class methods

2017-03-02 Thread Joe Bogner
sing On Thu, Mar 2, 2017 at 3:02 PM, Thorsten Jolitz <tjol...@gmail.com> wrote: > > Hi List, > > I'm experimenting a bit with the 'java' function, and the StringBuilder > and GregorianCalendar example from the JavaCode Wiki entry work fine, > but I wonder how to use a

JavaCode with static class methods

2017-03-02 Thread Thorsten Jolitz
Hi List, I'm experimenting a bit with the 'java' function, and the StringBuilder and GregorianCalendar example from the JavaCode Wiki entry work fine, but I wonder how to use a constructorless class like e.g. java.lang.Math with its static class methods? #+NAME: JavaCode - none of these work