Skip to Main Content

New to Java

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!

how to do maths calculation in java

807601Jan 30 2008 — edited Jan 31 2008
i was asked to write a program that can do calculations such as 4+3*2=10, (4+(2*(1+3)))/1.2=10. As far as I know that Java doesn't have the eval function which can do this type of calculations. How can I write a program that can do the work? I have no idea how to start. Help please!!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 28 2008
Added on Jan 30 2008
15 comments
209 views