Google is your friend: he can find things a lot faster than asking here.
A very, very quick search gave me over 300,000 hits:
java string expression evaluator - Google Search[
^] most of which look like they contain complete solutions...
In future, please try to do at least basic research yourself, and not waste your time or ours?