Is there any program like LINQPad for Java?(有没有类似 LINQPad for Java 的程序?)
问题描述
我发现 LINQPad 在回答有关 C# 或 VB.NET 的 StackOverflow 问题时非常有用.它允许我编写一些快速代码,运行它,并且(如果我愿意)看到格式良好的结果转储.这样我就可以确定我发布的代码确实可以运行.到目前为止,我还没有看到任何东西可以用来通过 Java 实现相同的结果.那里有这样的东西吗?
我不是在寻找查询数据源的东西;我只想要一个轻量级的 IDE.这些是我特别感兴趣的功能:
- 无需建立整个项目或文件结构即可编写和运行短代码片段的能力.
- 在代码运行时报告编译器和运行时错误.
- 添加对特定编辑器实例的引用的能力.
- 语法突出显示和自动完成/智能感知将是一个加分项.
因为我也找不到一个,所以我决定写一个.目前可以:
- 运行 java 片段(不需要类/导入/公共等等).
- 包含 MS/MySQL/Postgres 的驱动程序.
- 将结果输出为 HTML 表格
它非常粗糙,但我会随着时间的推移添加它.绝对欢迎提供反馈.
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?
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 - A java scratchpad for running snippets
Since I also couldn't find one I've decided to write one. Currently it can:
- Run java snippets (no class / imports / public blah... needed).
- Contains drivers for MS/MySQL/Postgres.
- Output results as HTML tables
It's very rough but I will add to it over time. Feedback is definitely welcome.
这篇关于有没有类似 LINQPad for Java 的程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:有没有类似 LINQPad for Java 的程序?
基础教程推荐
- “未找到匹配项"使用 matcher 的 group 方法时 2022-01-01
- 如何使用 Java 创建 X509 证书? 2022-01-01
- 设置 bean 时出现 Nullpointerexception 2022-01-01
- FirebaseListAdapter 不推送聊天应用程序的单个项目 - Firebase-Ui 3.1 2022-01-01
- Java:带有char数组的println给出乱码 2022-01-01
- 减少 JVM 暂停时间 >1 秒使用 UseConcMarkSweepGC 2022-01-01
- 降序排序:Java Map 2022-01-01
- 在 Libgdx 中处理屏幕的正确方法 2022-01-01
- 无法使用修饰符“public final"访问 java.util.Ha 2022-01-01
- Java Keytool 导入证书后出错,"keytool error: java.io.FileNotFoundException &拒绝访问" 2022-01-01