<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p>Hi Amber Team,</p><p>I’ve been thinking about a couple of ideas that might make Java even more beginner-friendly and for the next iteration of JEP 495</p></div><div dir="ltr">1) Move <a href="http://java.io.IO">java.io.IO</a> into java.lang.</div><div dir="ltr">This would save developers from having to import <a href="http://java.io">java.io</a> explicitly, especially as projects grow. It’s a small change that could streamline things right from the start. I suspect the new println() and readln() methods are going to be heavily used, it would be weird these methods need an import once the public class is set while System.out.* do not.</div><div dir="ltr"><br></div><div dir="ltr">2) Implicitly import static methods in java.lang.</div><div dir="ltr">Common methods like Double.parseDouble(), Integer.parseInt(), Math.sqrt() and so on are super handy, but explaining static methods can feel like a detour for beginners learning algorithms or basic concepts. Implicit imports could make Java easier to pick up while still allowing the traditional Class.method() style. This would also make java more similar to other languages such as Python and JS, helping java to keep competent as a first language.</div><div dir="ltr"><br></div><div dir="ltr">For example, a simple script could look like this:</div><div><div>void main() {</div><div> var doubleStr = readln("enter a double number");</div><div> var doubleNum = parseDouble(doubleStr);</div><div> println(sqrt(doubleNum));</div><div>}</div></div><div><br></div><div>I get that static imports can sometimes cause ambiguity, but in small, simple scripts or beginner projects, it’s unlikely people would use alternative libraries for functionality already in <code>java.lang</code>. This change could make Java feel more accessible without breaking anything (i guess, please correct me if i am mistaken)</div><div><br></div><div>I hope these not to be hard to implement or to be full of inconveniences, I understand things are often more complex than what meets the eye.</div><div><br></div><div><br></div><div>Best regards and wishes. </div><div>I have been playing with primitive pattern matching in switch and I am very excited about it. </div></div></div></div></div></div></div>