How to clear Java 9 JShell Console?
Use the Control Key+L or l (lower case L) to clear the JShell console.
You can use the following command (reference):
System.out.print("\033[H\033[2J");
Example:
-> System.out.println("Hello, JShell!")
Hello, JShell!
-> System.out.println("How are you?")
How are you?
-> System.out.print("\033[H\033[2J");
Now you'll have a clear console.