Re: Evaluate basic arithmatic in a string

From: John Harlow (sirsausage_at_hotmail.com)
Date: 04/02/04


Date: Fri, 2 Apr 2004 09:54:43 -0500


> I have a string that contains the following value:
>
> "myValue += 5"
>
> I need, in Java, to be able to evaluate this expression.

Consider using http://www.mozilla.org/rhino/ - the eval() function does this
nicely.

Powerful stuff!