I am creating a Graphing Calculator as our project in Calculus. The only thing left in my program is the input from the user.
For example, the user placed an input in the text field named 'userInput':
y=sin(x)
Next, converting it to string will have
String equation = userInput.getText();
And the string variable 'equation' will have a value which is:
"y=sin(x)"
Is there a way to read a String as a Java code?