using eval in Java

Posted by karthi-27 on Stack Overflow See other posts from Stack Overflow or by karthi-27
Published on 2010-04-09T04:07:51Z Indexed on 2010/04/09 4:33 UTC
Read the original article Hit count: 451

Filed under:

I am new to Java. I have a string like the following:

 str="4*5";

Now I have to get the result of 20 by using the string. I know in some other languages the eval function will do this. How do I do this in Java?

© Stack Overflow or respective owner

Related posts about java