+ 1

How to convert a String containing mathematical expressions into Integer?

For example : String str = "1*3+6%"; How can i convert this? Please help

7th Sep 2020, 4:57 AM
Ghian Carlos Tan
Ghian Carlos Tan - avatar
11 Antworten
+ 3
You have to specify the language. Looks like Java?
8th Sep 2020, 10:33 PM
Sonic
Sonic - avatar
+ 1
~ swim ~ thanks a lot!
7th Sep 2020, 5:22 AM
Ghian Carlos Tan
Ghian Carlos Tan - avatar
+ 1
Sonic yes it's java
9th Sep 2020, 10:37 AM
Ghian Carlos Tan
Ghian Carlos Tan - avatar
0
Do you want to convert only those numbers from str to int (or) want to solve the mathematical expression
7th Sep 2020, 5:10 AM
Jenson Y
0
Jesus_My_Life I want to solve the mathematical expression using built in java but i don't know how.
7th Sep 2020, 5:21 AM
Ghian Carlos Tan
Ghian Carlos Tan - avatar
0
Coder Kitten but it say that these class will be disabled soon but thanks anyways plus it works👍
7th Sep 2020, 11:34 AM
Ghian Carlos Tan
Ghian Carlos Tan - avatar