JEP 495 Question

Ethan McCue ethan at mccue.dev
Thu Nov 7 18:23:32 UTC 2024


CC-ing Mr. Fogel, who also just made an email about this on discuss.

I will forward that thread to you Mr. Burd - though this is the proper
place to continue discussion.




On Thu, Nov 7, 2024 at 12:45 PM Barry Burd <bburd at drew.edu> wrote:

> I see that parameterless println() and readln() methods are being added
> to java.io.IO in JEP 495. I'm still wondering if there's been any
> thought to including methods like readInt and readDouble. In the early
> stage of an introduction to Java, it's common to have the student input
> int values and double values for simple examples. With the current spec,
> the best way to do this (as far as I can see) is
>
>        var n = Integer.parseInt(readln("Enter a number"));
>
> It seems natural to simplify this with a readInt method, and the
> addition of such a method wouldn't weigh heavily on the java.io.IO
> package.
> Any thoughts?
>    --Barry
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20241107/6b7a083d/attachment-0001.htm>


More information about the amber-dev mailing list