General discussion

Locked

Java class that will perform arithmetic?

By Larry's Alias ·
Is ther a Java class that will resolve mathematical formulas that are input in the form of a string,e.g. (5 + (2 + 6)^2)/8 and return the correct numerical answer of the formula?

This conversation is currently closed to new comments.

6 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Java class that will perform arithmetic?

by ekudari In reply to Java class that will perf ...
Collapse -

Java class that will perform arithmetic?

by Larry's Alias In reply to Java class that will perf ...

Poster rated this answer

Collapse -

Java class that will perform arithmetic?

by Larry's Alias In reply to Java class that will perf ...

Poster rated this answer

Collapse -

Java class that will perform arithmetic?

by laurie_haischer In reply to Java class that will perf ...

No. see this reference http://java.sun.com/j2se/1.4/docs/api/index.html
for all the java classes and methods in the latest standard release (J2 standard ed. 1.4).
Java.lang classes String, Math have methods that can be utilized to convert a String object into types to perform arithmetic operations to give the desired return type. You will have to do conversions and operations on the results in your statements.

Collapse -

Java class that will perform arithmetic?

by Larry's Alias In reply to Java class that will perf ...

Poster rated this answer

Collapse -

Java class that will perform arithmetic?

by Larry's Alias In reply to Java class that will perf ...

This question was closed by the author

Back to Web Development Forum
6 total posts (Page 1 of 1)  

Related Discussions

Related Forums