Convert a string in code in Java : <p>I'm trying to convert a string in code in Java, but i have no idea how to do it or if it is possible.</p>

<p>This is my Java code (Measure is an other class I have created)</p>

<pre><code>String str= "Measure m = new Measure(10,1);";
</code></pre>

<p>Is it possible to run the code in the string?</p>
