I have a Java project which required to extract mathematical equation from bunch of code that entered by users. For example, the user has keyed in the following code in the jTextArea
:
public void setTest(int i)
{
int j;
j=i+i;
}
So, how do I can get the equation of:
j=i+i;
from the above user input since it is in form of String?