I try to build a calculator with user input and want to calculate everything with Operands in Order. I saved the user input in two String ArrayLists: -> postNumbers for all numbers -> postOperands for all operands
I tried to calculate them with different for loops and switch/cases but it didnt worked right as soon as two pluses or slashes were inputed. Is there a way to put the two ArrayLists into one alternativly and calcute it then like:
List N: 10 5 3 2
List M: 10+5*3-2
List O: + * -
And then finally put it into a variable?