In an earlier version of JShell, a method was predefined printf, but it was removed from earlier access builds. You can, of course, define your own printf method:
jshell> void printf(String format, Object... args) { System.out.printf(format, args); }
Or you can get the printing methods that were in previous versions by running JShell with:
jshell --start DEFAULT --start PRINTING
(If you use only --start PRINTING, you will not receive the default import.)
. JDK-8172102 Java b2e915d476be, .