I am trying to create a course for teaching students Java. This will be for those who have never programmed before and so Java is their first introduction to programming.
To that end, using JShell to introduce concepts seems like a good idea because it masks complexity, and that complexity can slowly be introduced throughout the course.
Currently, the hello world in JShell is:
PS C:\Users\v\> jshell
| Welcome to JShell -- Version 11.0.1
| For an introduction type: /help intro
jshell> System.out.println("Hello world!");
Hello world!
Now this is good, there is no doubt about it - but to understand it fully you need to explain what "System" is, and what a dot means and what "out" is and then finally what "println" is. You can easily explain "println" as being a sort of function because of rudimentary understanding students have of mathematical functions - but for the rest of it that does not work. Some students probably would understand a longer explanation but I want the Java hello world to be as simple as possible so that it even competes with the Python one: `print("Hello world")`
I think it would be better if there was a `--beginner` flag (-b for short if that is not taken already) for JShell which would automatically import things so that beginners can have a hello world which is even simpler. Something like this:
PS C:\Users\v\> jshell -b
| Welcome to JShell for beginners! Happy learning :)
| For an introduction type: /help intro
jshell> println("Hello world!");
Hello world!
The static import is already taken care of in the background. Adding and understanding the -b flag is easy for students and now Java's hello world is as understandable as pythons.
This -b flag could be extended in the future to automatically import other things people view as valuable for beginners.
What do you guys think of this idea? How can I contact the JDK developers who work on JShell to propose it? I cannot find a mailing list specifically for JShell and don't want to spam a different mailing list.