When I enter an expression in JShell (9.0.1), it returns with:
$22 -> <value>
Where did 22 come from and what happened from 1 to 21 dollars? (They are undefined.)
I seem to vaguely remember (when I started with Java 9.0) that variables started at $ 1, which made more sense. Now, with 9.0.1, they all start at $ 22. Why?
source
share