Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 318
  • Last Modified:

maths formula in a string

im reading in a string form a text field, in which there is a maths formula i.e ((7*7)/8(9*25+1))

i need to work out the answer to what ever formula is entered in by the user,

is there a easy way to do this in java, because i have been thinking about how to do this via my own algorithm and its kinda complex but im proberly going about it the wrong way,

the user can enter in and number and only the four basic mathamatical operators '*','+','-','/', and they can enter in white spaces between the operators,

any help would be greatly appreciated

thanks
0
stephencushen
Asked:
stephencushen
  • 2
1 Solution
 
CEHJCommented:
0
 
CleanupPingCommented:
stephencushen:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
tomboshellCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept CEHJ's comment as answer.

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Thomas Boshell
EE Cleanup Volunteer
0
 
CEHJCommented:
:-)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now