0

In java how can we perform the below Arithmetic Operations?

String num = "42*65+223-55/23";

how to find the sum of the Above String?

Stephen C
  • 698,415
  • 94
  • 811
  • 1,216
  • This question has nothing to do with computer cores. Please **read** the tag wiki's before you use them ... and don't use inappropriate ones. – Stephen C May 15 '21 at 06:47
  • Hi Abdul and welcome. I need a little more info to provide help. If you would like to evaluate the string as a math expression, then the link in the previous comment will help. Are you asking how to sum the integer values of the characters of the string ? – Jacob Harding May 15 '21 at 06:50

0 Answers0