Calculate something written in a string

I’m currently writing a programm to solve equations.
I have the following Problem:
My equation will be in the form of a string.
What I need is some kind of method to do something like.

String calculation="5×(4+1*3)";
println(calculate(calculation));

That worked for me! Thanks!