[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-jel] Problem wih arrays
From: |
Konstantin L. Metlov |
Subject: |
Re: [Help-jel] Problem wih arrays |
Date: |
Tue, 6 Sep 2005 15:14:44 +0200 (CEST) |
Hello !
Of course JEL can do it ! You don't even have to write ".intValue()".
I have modified the 'Calculator.java' from 'samples/' subdirectory of JEL
distribution to support references to your array. The two added and one
modified (changing 1 -> 2) lines of code are marked in the attached
version of Calculator.java.
To compile it (supposing the current directory contains both
Calculator.java and jel.jar) you execute
> javac -classpath jel.jar Calculator.java
To run it:
> java -cp .:jel.jar Calculator 'I[0] * 3'
You can also try other expressions involving your array I.
With the best regards,
Konstantin.
On Mon, 5 Sep 2005, Sreenivasan G wrote:
Sir,
I have Integer[] i = new Integer[]{ new Integer(2), new Integer(3) };
I want to have an expression like "i[0].intValue() * 3". Is it is
possible to do with JEL. If so, please give solution
"Knowledge speaks, but wisdom listens"
Sreenivasan G
Software Engineer
Amrita Technologies
Mob No: 09447116263
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
Help-jel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-jel
Calculator.java
Description: Calculator.java