How to print the solution of an equation inputted as a String in Java : <p>How to input a string such as :
    "1+2/3*2"
To give the output as 2.333</p>

<p>Basically I want to input a string which is a mathematical equation and output the answer using BODMAS .
I've tried breaking the string into an array of operands and an array of operators in the same order but I'm unable to do the BODMAS part.</p>
