Up to this point, you have entered data directly into JShell from the keyboard. You now have the ability to work with JShell scripts, which are a sequence of JShell commands and snippets. The format is the same as other scripting formats, with one command per line.
In this section, we will look at startup scripts, examine how to load scripts, how to save scripts, and then end with a look at advanced scripting with JShell.