On Fri, 9 Dec 2022 18:32:37 GMT, Naoto Sato <na...@openjdk.org> wrote:
> The example in `Scanner` directly uses `System.in` which may cause unwanted > behavior when the default charset and the console charset differ. Using > `Console.reader()` is more appropriate. Also changed examples into snippets. Yes. This issue stems from [JEP 400](https://openjdk.org/jeps/400) that went into JDK18 where spec/behavior changes are all described. ------------- PR: https://git.openjdk.org/jdk20/pull/14