java repl
Any good suggestions on a Java REPL implementation like ‘scala’ and ‘python’ or ‘php -a’?
关于Java REPL实现的任何好的建议,例如' scala '和'python'或'php -a'?
The java-repl tool https://github.com/albertlatacz/java-repl/ works nicely for most situations for me. It is released as a .jar. Hence, it is easy to download and run:
Java-repl工具https://github.com/albertlatacz/java-repl/对我来说在大多数情况下都能很好地工作。 它以.jar形式发布。 因此,很容易下载和运行:
$ wget --quiethttps://github.com/albertlatacz/java-repl/releases/download/428/javarepl-428.jar -O /tmp/javarepo-428.jar && java -jar /tmp/javarepo-428.jar
One usage example is as follows.
一个用法示例如下。
$ wget --quiet https://github.com/albertlatacz/java-repl/releases/download/428/javarepl-428.jar -O /tmp/javarepo-428.jar && java -jar /tmp/javarepo-428.jar
Welcome to JavaREPL version 428 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_25)
Type expression to evaluate, :help for more options or press tab to auto-complete.
Connected to local instance at http://localhost:33598
java> long ts =System.currentTimeMillis()/1000;
long ts = 1491474800
java>
Answered by zma.
由zma回答。
翻译自: https://www.systutorials.com/any-good-java-repl-tool-implementation/
java repl