Is there a way to run short bits of Java code without compiling?

后端 未结 9 1420
無奈伤痛
無奈伤痛 2020-12-25 15:33

Is there a way to run or simulate running Java statements (kind of like IDLE - the Python GUI) without compiling and running the executable? I want to quickly test statement

9条回答
  •  一个人的身影
    2020-12-25 15:54

    You can accomplish this with Groovy and the Groovy Console, with the caveat that you'd need to know how to express whatever you are trying to express in Java in the Groovy language:

    Groovy Console

提交回复
热议问题