IS there any way to store this String value (or any other arithmatic equation) into an int variable ?
The equation is: String eq1= "10*2+5/4";
can eql be casted in int i;
i have tried explicit casting but it doesnt work.
Note that the equation String eq1= "10*2+5/4";
is just for example , the user can enter any other numerical equation with arithmetic operators + , - , / , * and %
I have to obtain the equation from JTextArea.