Executing another java program from our java program
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/502494/execute-a-java-program-from-our-java-program">Execute a Java program from our Java program</a>  </p>
</blockquote>



<p>I wanted to execute another java program from our java program. When i run a java program called 'First.java', it should prompt the user to enter the name of any class name(.java file name) and then it should read that input(.java file) and should be able to compile and run that program.Can anyone give me a sample code for that?</p>
