A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Java in General
Evaluation of an expression
Joined: Jul 04, 2004
Aug 27, 2004 23:19:00
I want a suggestion regarding this problem.
The user can enter an expression in the textbox..
At the server side I have to evaluate whether the expression entered by the
user is a valid expression....(infix/postfix/prefix)
Can u suggest me a solution for this..how should i go about this problem.
Thanks in advance.
Author and all-around good cowpoke
Joined: Mar 22, 2000
Aug 28, 2004 07:52:00
Seems to me that is essentially the problem solved by a compiler so you should look for tutorials on compiler writing. To give you a start, you will need some way to recognize/distinguish between operators and operands.
Java Resources at
I agree. Here's the link:
subject: Evaluation of an expression
Anything wrong this regular expression
Jasper Reports - Commons Digester Problem
expression language is all in all
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014