How to run Java code using Java code?

后端 未结 4 1509
北荒
北荒 2020-12-05 22:35

Basically, I want to do two things:

  1. I want to know if there is any way that I can run Java code using Java code.
  2. If it is possible, how would I show t
4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-05 22:51

    You can use a scripting language running on top of the JVM. Groovy is a very good idea and it has very similar syntax compared to Java.

提交回复
热议问题