1.7 Methods

Learn how to declare and use functions in Jshell. Understand how JShell lets you define and redefine methods and then execute them directly from the prompt. Use the JShell command /methods to look up the methods you've declared.