change math symbol from string into actual value in java code example Example: convert math expression as string to int expression = '10 * 10' print(eval(expression))