I have a string like the following:
String str = "4*5";
Now I have to get the result of 20
by using the string.
I know in some other languages the eval()
function will do this.
How can I do this in Java?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…