Skip to content

Undesired 3-spaces indentation used in the sample code of the "Making Your Program Interactive" section of the "Getting Started with Java" tutorial #203

@brlin-tw

Description

@brlin-tw

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions