Can anyone here guide me about this problem. I am new in Java and our professor gave us a Laboratory Exercise called "Scientific Calculator".
This program will solve this kind of expressions: 1. 6+(4*6) 2. ((50+25)/5)+12 3. 15/3*3
i have a code here but it will just add the following expressions. If the user input another expression like :
(79+34)-5 or any...
My program will go crazy.
He told us that we can use Stack or Arrays but my problem is i don't have any idea where and what to start. Thanks!
UPDATE: I found the answer