In Making Your Program Interactive - Getting Started with Java - Dev.java, the following sample code is featured:
void main() {
IO.println("Hello world!");
var name = IO.readln("What is your name? ");
IO.println("Hello " + name);
}
which uses 3 spaces instead of 4 as shown in the previous sample code, causing inconsistency and additional cleanup effort if one wanted to version control it for whatever reason:
void main() {
IO.println("Hello, World!");
}
I would like to make a patch, however the current page content doesn't seem to match with the following file which seems to be the intended source:
https://github.com/java/devjava-content/blob/main/app/pages/learn/01_tutorial/01_your-first-java-app/01_getting-started-with-java.md