-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Location of Issue:
https://dev.java/learn/exceptions/catching-handling/
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:
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.