How to run java code using Java code?
- by Nitz
Hey Guys
i want to do basically two things
1)I want to know is there any way that i can run the java code, using some java code.
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.
I know this is possible bcz one of my senior had done that..but i don't know how?
May be with using the java's inbuilt classes.
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.