Discussion Locked
0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
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?
6 replies
by ekudari
NO
Poster rated this answer
Poster rated this answer
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.
Poster rated this answer
This question was closed by the author
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending
0 helpful
1 reply
1 helpful
3 replies
Discussion Locked
What Makes a Business Website Effective in 2026
2 helpful
10 replies
Question
Windows and macOS computers becoming slow or unstable after updates - what should I check first
0 helpful
1 reply
Discussion
Optimizing WordPress widgets and DOM size
0 helpful
3 replies