Interactive Java
It would not be fair to say that Java is a 100% not-interactive language; there are some extensions that provide a REPL environment directly for Java.
One such environment is a scripting language (BeanShell) that looks exactly like Java. However, it is quite old and the new Java 8 syntax is not supported, so it is not very useful for doing interactive data analysis.
What is more interesting is Java 9, which comes with an integrated REPL called JShell and supports autocompletion on tab, Java Streams, and the Java 8 syntax for lambda expressions. At the time of writing, Java 9 is only available as an Early Access Release. You can download it from https://jdk9.java.net/download/.
Starting the shell is easy:
$ jshell
But typically ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access