This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes String decoding Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "String decoding" Watch "String decoding" New topic
Author

String decoding

thisum biddhika
Greenhorn

Joined: Dec 19, 2008
Posts: 3
I'm getting inputs to my program as strings, like this:
=12+69*98
and i have to compute these values.
I tried to do this by getting the string and divide into sub strings and then to combine those with required opcodes.
(i create an ArrayList to do this)
(I took the integer values of those substrings)

but combining those strings didn't work.

As i very new to java if someone can help me, i would appriciate it.
thanks.
Andre Uhres
Greenhorn

Joined: Nov 23, 2008
Posts: 23
You may want to consider this parser:Parser for mathematical formulas
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 8436

Nothing Swing related here.
Moving.


[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: String decoding
 
Similar Threads
How to add String values to a List?
JDBC and Servlet
Casting a String object to a Form object
Comparing two Java Objects. Which is the best way???
how to pass the result of a query executed in a include JSP to the main JSP