PRivate static Main javac = new Main(); /**等待用戶輸入JavaCode,然後編譯、執行*/ public static void main(String[] args) throws Exception { String code = ""; DataInputStream bd = new DataInputStream(System.in); byte[] brray= new byte[200]; int i = bd.read(brray); code = new String(brray,0,i); run(compile(code)); System.out.print(code);