master
Add read methods
JAVA-38569 Fix core-java-console in the context of migrating to JDK 21 (#17368)