Advertisement

10.03.2003 at 04:14PM PDT, ID: 20756899
[x]
Attachment Details

Java eval(string) ?

Asked by clayperez in Java Programming Language

Tags: java, eval

I am writing a small calculator application in Java.
I have a TextField that I am using to display the user's input.
What I need to do next is process this string as a mathematical expression.

For instance, the string might be "2x5/6*(45+9)"
I want Java to "Evaluate" this string as a value
which, in this case should be the float value .03086......

What do I do?!
Start Free Trial
[+][-]10.03.2003 at 04:22PM PDT, ID: 9488640

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Java Programming Language
Tags: java, eval
Sign Up Now!
Solution Provided By: Venabili
Participating Experts: 3
Solution Grade: A
 
 
[+][-]10.03.2003 at 04:27PM PDT, ID: 9488660

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.03.2003 at 04:34PM PDT, ID: 9488682

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.03.2003 at 04:38PM PDT, ID: 9488697

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.03.2003 at 04:47PM PDT, ID: 9488745

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10.03.2003 at 07:30PM PDT, ID: 9489335

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.03.2003 at 07:34PM PDT, ID: 9489349

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.04.2003 at 12:03AM PDT, ID: 9490036

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.04.2003 at 12:11AM PDT, ID: 9490060

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.06.2004 at 12:38AM PST, ID: 10050500

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.15.2004 at 10:07AM PST, ID: 10122413

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32