Skip to content

Typo in "string-builders" tutorial: "insert(int offset)" should be "insert(int offset, Object obj)" #193

@AyAyEm

Description

@AyAyEm

Location of Issue:
https://dev.java/learn/numbers-strings/string-builders/#stringbuilder-operations

Image

Description:
In the section "StringBuilder Operations", at the arguments of the insert method:

"You can insert any primitive type or object at the given offset with one of the insert(int offset)..."

Suggested Fix:

"insert(int offset, Object obj)"

Not sure if it's intentional or if it's a mistake.

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