Does Java have a libraries or functionality capable of evaluating arbitrary arithmetic expressions using BODMAS order of evaluation
<p>Can we make calculator program using <a href="http://en.wikipedia.org/wiki/Order_of_operations" rel="nofollow">BODMAS</a> rule by something like this in Java :</p>

<pre><code>String valfromtextbox = "2(2*2)+5";

long total = Long.parseLong(valfromtextbox);
</code></pre>

<p>Can we do something like above or we have to make entire logic to do this.</p>

<p>If we have to make entire logic then please give me hint.</p>
