How to run java code using Java code?
<p>Hey Guys<br>
i want to do basically two things <Br>
1)I want to know is there any way that i can run the java code, using some java code.<br></p>

<p>2 ) and if it is possible then , and whatever the out put is then it should get that out put [ maybe output or error or exception ] and show on my screen, so i need to get that also.</p>

<p>I know this is possible bcz one of my senior had done that..but i don't know how?<br>
May be with using the java's inbuilt classes.<br></p>

<p>Note:  user will write the code in some text file and then i will store that file content in some variable and then may be run that code.</p>
