© Kishori Sharan 2017

Kishori Sharan, Beginning Java 9 Fundamentals, https://doi.org/10.1007/978-1-4842-2902-6_23

23. Java Shell

Kishori Sharan

(1)Montgomery, Alabama, USA

In this chapter, you will learn:

  • What the Java shell is

  • What the JShell tool and the JShell API are

  • How to configure the JShell tool

  • How to use the JShell tool to evaluate snippets of Java code

  • How to use the JShell API to evaluate snippets of Java code

All example programs in this chapter are a member of a jdojo.jshell module, as declared in Listing 23-1.

Listing 23-1. The Declaration of a jdojo.jshell Module
// module-info.javamodule jdojo.jshell {    exports com.jdojo.jshell;    requires jdk.jshell;}

Before you begin reading this chapter, let me clarify the usage of the following three ...

Get Beginning Java 9 Fundamentals: Arrays, Objects, Modules, JShell, and Regular Expressions now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.