The definition of parsing : [n] a computer program that divides code up into functional components; "compilers must parse source code in order to translate it into object code"
The example is an example of "expression evaluation", not parsing. Parsing the expression should return a list of components (variables, constants and operators) usually expressed in Polish Notation or Reverse Polish notation, not the value of the expression.
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
Parsing mathematical expressions
Do you already use JEP? If not, do you think you will after reading this tip? Share your thoughts on JEP.
If you aren't subscribed to the free Java newsletter, click the following link to automatically sign up:
http://nl.com.com/MiniFormHandler?brand=builder&subs_channel=bldr_front_door&list_id=e027&tag=fb