Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PERFORM THE OPERATIONS ON STRING

807589Sep 18 2008 — edited Sep 18 2008
I have a problem regarding strings..
This is how the program goes.

The user will input an arithmetic problem for example..(9 + 2 * 3 + 4)
but it will input as a STRING..

String input = "9 + 2 * 3 + 4";

and the spaces in the string will be deleted..
using this spit method.

now how can I perform those operations inside the string..

please answer this..I really need it..Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 16 2008
Added on Sep 18 2008
13 comments
225 views