是否有像LINQPad for Java这样的程序? [英] Is there any program like LINQPad for Java?
问题描述
我发现LINQPad在回答C#或VB.NET的StackOverflow问题时非常有用。它允许我编写一些快速代码,运行它,并且(如果我想的话)查看结果的格式良好的转储。这样我可以确定我发布的代码实际运行。到目前为止,我还没有看到任何可以用Java实现相同结果的东西。那里有类似的东西吗?
I've found LINQPad to be extremely useful when answering StackOverflow questions for C# or VB.NET. It allows me to write up some quick code, run it, and (if I want) see a nicely-formatted dump of the results. That way I can be sure that the code I post actually runs. Thus far I haven't seen anything that I can use to achieve the same result with Java. Is there anything like that out there?
我不寻找查询数据源的东西;我只想要一个轻量级的IDE。这些是我特别感兴趣的功能:
I am not looking for something to query data sources; I just want a light-weight IDE. These are the features I'm particularly interested in:
- 能够在不建立整个项目或文件的情况下编写和运行短代码片段结构。
- 在代码运行时报告编译器和运行时错误。
- 添加对特定编辑器实例的引用的能力。
- 语法高亮显示和自动完成/智能感知将是一个加号。
- The ability to write and run short snippets of code without establishing a whole project or file structure.
- Reporting of compiler and runtime errors in the code when it is run.
- The ability to add references to a particular editor instance.
- Syntax highlighting and Autocomplete/Intellisense would be a plus.
推荐答案
JPad - 用于运行代码段的java暂存器
JPad - A java scratchpad for running snippets
因为我也找不到一个我决定写一个。目前它可以:
Since I also couldn't find one I've decided to write one. Currently it can:
- 运行java snippets(不需要class / imports / public blah ......)。
- 包含MS / MySQL / Postgres的驱动程序。
- 以HTML表格输出结果
<这是非常粗糙但随着时间的推移我会加入它。绝对欢迎反馈。
It's very rough but I will add to it over time. Feedback is definitely welcome.
这篇关于是否有像LINQPad for Java这样的程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!