Stack<String> s = new Stack<String>();
String[] tokens = infix.split(" ");
Right now I am making a calculator that accepts infix strings to calculate it, but they have to be separated by spaces, how do i make it where the postfix evaluator can accept no spaces. I.E. I have to do this
5 + 5 * sin ( 32 )
But I want it to accept that or
5+5*sin(32)