Why does my jshell instance (JDK Version 9-ea) unable to identify printf()
statement ? Below is the error I observe,
jshell> printf("Print number one - %d",1)
| Error:
| cannot find symbol
| symbol: method printf(java.lang.String,int)
| printf("Print number one - %d",1)
| ^----^
I am able to access printf, provided I specify it in a regular way.
jshell> System.out.printf("Print number one - %d",1)
Print number one - 1$1 ==> java.io.PrintStream@1efbd816
Any pointers?