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

后端 未结 9 1372
無奈伤痛
無奈伤痛 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 16:14

    You should be able to use Beanshell to do this:

    http://www.beanshell.org/download.html

    Your other alternative, if you're using Eclipse, is to make use of the scrapbook functionality:

    http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.user/tasks/task-create_scrapbook_page.htm

提交回复
热议问题