I've been messing around with making an advanced calculator in Java by implementing popular algorithm solving techniques like PEMDAS and SABDM (Both commonly used for Algebra and other equations) and I was wondering, what be the best way to go about doing this?
Right now, I've implemented PEMDAS, and the first thing it does is search for parenthesis and then cuts what's inside and places them in Arrays. So, you type in:
and it cuts out and prints:
So, then it has to calculate it, but I don't know where to start. I can't just be like you know:
a = bgc
Where a is the answer, b is the first number, g is the solving type, and c is the other number.
So what should I do?