If you can, you can create a new Java file, then invoke the javac compiler :) If you want a true interpreter, that will be a bit more difficult (well, bit is an understatement). I would recommend...