Skip to content

Outdated reference in "catching-handling" tutorial #199

@AyAyEm

Description

@AyAyEm

Location of Issue:
https://dev.java/learn/exceptions/catching-handling/

Image

The first line in boldface is a call to a constructor. The constructor initializes an output stream on a file. If the file cannot be opened, the constructor throws an IOException. The second boldface line is a call to the ArrayList class's get method, which throws an IndexOutOfBoundsException if the value of its argument is too small (less than 0) or too large (more than the number of elements currently contained by the ArrayList.

Context:

Image

Description:
The sentence refers to "line in boldface", which i cannot find.

Suggested Fix:
Refer to line number instead of "line in boldface":

The line 20 is a call to a constructor. The constructor initializes an output stream on a file. If the file cannot be opened, the constructor throws an IOException. Line 24 is a call to the ArrayList class's get method, which throws an IndexOutOfBoundsException if the value of its argument is too small (less than 0) or too large (more than the number of elements currently contained by the ArrayList.

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