<div dir="ltr">CC-ing Mr. Fogel, who also just made an email about this on discuss.<br><br>I will forward that thread to you Mr. Burd - though this is the proper place to continue discussion.<br><br><br><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 7, 2024 at 12:45 PM Barry Burd <<a href="mailto:bburd@drew.edu">bburd@drew.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I see that parameterless println() and readln() methods are being added <br>
to <a href="http://java.io.IO" rel="noreferrer" target="_blank">java.io.IO</a> in JEP 495. I'm still wondering if there's been any <br>
thought to including methods like readInt and readDouble. In the early <br>
stage of an introduction to Java, it's common to have the student input <br>
int values and double values for simple examples. With the current spec, <br>
the best way to do this (as far as I can see) is<br>
<br>
var n = Integer.parseInt(readln("Enter a number"));<br>
<br>
It seems natural to simplify this with a readInt method, and the <br>
addition of such a method wouldn't weigh heavily on the <a href="http://java.io.IO" rel="noreferrer" target="_blank">java.io.IO</a> package.<br>
Any thoughts?<br>
--Barry<br>
</blockquote></div>