This content has been marked as final. Show 6 replies
Either you parse it yourself or you can use Beanshell.
Nothing in the jdk, but plenty of open source projects that do. Just google
Is there any way in jdk(i.e. with out using scripting)
If you want to do it without extras you have to parse it yourself. Try googling parsetrees.
Message was edited by:
... or google
'reverse polish notation'
'infix to postfix"
You must first apply the algorithm to convert an Infix expression to Postfix (you must use a Stack), and then use the Postfix expression evaluation algorithm(which also uses a Stack).