execute code from a string?
I have a Java program that draws lots of different types of curves.
I need to program how to save a drawing to a file.
It would be easiest to make a file that has the string of the code which recreates the drawing.
Is it possible to execute the content of a string?
A trivial example would be you declare an integer
int number
and you execute the string
"number = 10"
so that the value of number becomes 10.
Is this possible?

