JShell: An Interactive Shell for the Java Platform by Robert Field
Why Stack Overflow recommends it
Stack Overflow users link it when they need an authoritative explanation of how JShell behaves, such as its implicit printf wrapper, straight from its creator.
Recommended by 2 people across 2 different months, 2016 to 2017.
What it is
A Devoxx conference talk by Robert Field, the creator of JShell, introducing the Java REPL planned for JDK 9. He demos using it to explore APIs, prototype code and learn the language, then explains how it fits into the Java compiler and JVM, including how forward references work and how the JShell API can power other tools.
What people said
Strong rec Nicolai Parlog · 2016-03 · Stack Overflow · on “Error: cannot find symbol - on every command”
The examples are for something completely different than the JShell [LINK] shipped with Java 9 [LINK] . From the first section of the page you link to [LINK] : JShell is a UNIX-like shell written in Java, and intended primarily for working with Java programs. It was written to overcome the problems in working with Java on the Psion 5mx: The JShell shipped with Java 9 is not meant to interact with the operating system but to throw Java snippets at a running JVM and this try out things. From your other link: REPL allows you to evaluate code snippets such as declarations, statements, expressions. You can test your code as you create it, and way before you are done with your whole project. So th
Recommends Naman · 2017-10 · Stack Overflow · on “Why and how do you use JShell?”
Though I would really encourage you to go ahead and read The Java Shell [LINK] motivation and goals. Yet to answer your question with a slight hands-on and I would actually be glad to know about the time you take and procedure you would follow while trying this out on an IDE. So, with few those, here you go:- 1. I recently got to know that Java 9 introduced overloaded Convenience Factory Methods for Collections and then was curious about what do they do and how do I make use of them. Steps -> Type 'jshell' on command prompt (assuming JAVA_HOME is set to JDK9's bin) -> Type 'List.o' -> Press Tab (completes the `of`) -> Tab displays all signatures -> Tab starts reading the documentation from f
Cites firephil · 2016-11 · Stack Overflow · on “JDK 9 jshell printf() special treatment?”
Found it [this video] From the creator of jshell, its a method that wraps the System.out.printf() to a local prinf() method which is imported implicitly when jshell starts...