I spent a lot of time programming in Java recently, and one thing I miss from scripting languages was the ability to test them in a console.
To quickly test a java program, I have to edit a file, then turn it to bytecode and execute it. Even using an IDE, it loses its fun after the 372 th time.
I would like to know if there is a product out there that features anything like an interactive console (I bet you need a JIT compiler) and some autocompletion (with relexivity, I suppose it's possible).
Maybe that's something very common that I just don't know about or something completely impossible, but its worst asking :-)
Yes; jshell, and before that some close approximations are Groovy, Clojure, Scala, and the Bean Shell.
Funnily enough, you get an interactive console with Jython ! You don't get much more Python-like.
Java REPL http://www.javarepl.com/term.html
with an intellij plugin: http://plugins.jetbrains.com/plugin/7215?pr=
Try Dr Java's "Interaction Pane".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With