Regular Expression for Simple Maths Equation parser in Java : <p>Currently learning Java, and trying to parse a maths equation for valid inputs:</p>

<p>For example, the user has to input integers in the form:</p>

<p>Operand Operator Operand</p>

<p>in that specific order, and the program would then need to be able to tell if the inputs were in that form, and then work out the simple equation.</p>

<p>An example would be:</p>

<p>4 * 8 which the result would give as 32</p>

<p>the program would also reject something like 45.6 * 0.3, or 45 + 3 / 4</p>

<p>For this to work, do I have to use regular expression, or some other method of if loops?</p>
