0

How to convert symbols like "+,-,*,/" from String to int

Now i'm working with android studio and I cant to convert symbols like "+,-,*,/" from Strimg to int.It's possible or not? p.s:I'm doing calculator. For example i have a string:String a =23 + 34 * 43 / 23; and i need to parse it to int.

24th Aug 2018, 1:22 PM
Fury
1 ответ
0
those symbols cannot be converted to integers. you can look at algorithms on how to evaluate an expression or use a built in library if one exists
24th Aug 2018, 3:12 PM
hinanawi
hinanawi - avatar