User Profile
Collapse
-
thanks people all done -
Concatenating a list into a string
Hi,
I am trying to convert infix notation to postfix notation, so far i have been quite successfull but in order to move on to the next part of the program (RPN calculator) i need to take all the elements in the Array list i have of all the operators and operands (in the right order) and concatinate them to form a string and i am finding it fairly difficult if anyone can shed any light on how this can be done i would be very greatfull... -
thanks!
I've been researching think im going to go for the approch of changing the input from infix to post fix as i have already done a RPN calculator in python and i understand how this worksLeave a comment:
-
java calculator using nested expressions
Im fairly new to java programming although i have some experience in python.
I have to create a calculator program (command line) which takes as input a mathematical expression consisting of decimal numbers and the four basic mathematical operators (+,-,/,*) and correctly handles nested mathematical expressions.
Some examples:
• 5 + 6 * 2 results in 17
• (5 + 4) * (4 - 2) results in 18
...
No activity results to display
Show More
Leave a comment: