Run a simple text file as Java

后端 未结 3 473
忘了有多久
忘了有多久 2021-01-17 23:50

I have a simple .txt file which has pure Java code inside it like

   public class C {
      public static void main(String[] args ) {
        System.out.prin         


        
3条回答
  •  独厮守ぢ
    2021-01-18 00:30

    Check out this thread for how to start the compile from within Java...

    How to set the source for compilation by a CompilationTask

提交回复
热议问题