Skip to content

Undesired 8-spaces indentation used in the sample code of the "Launching a Multi-File Program" section of the "Launching Simple Source-Code Programs" tutorial #204

@brlin-tw

Description

@brlin-tw

The sample code of the "Launching a Multi-File Program" section of the "Launching Simple Source-Code Programs" tutorial:

import model.Person;
import service.PersonService;

public class Main{
        public static void main(String[] args){
                PersonService service = new PersonService();
                Person person = service.createNewPerson();
                IO.println(person.printName() + " has been created!");
        }
}

uses 8 spaces as a level of indentation instead of the typical 4 as in the previous examples.

This makes the code snippet harder to read as more text is clipped by the textbox border and requires more scrolling to read the full content:

Screenshot

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