Skip to content

Commit 6aa415a

Browse files
authored
improve explanation on Java array .length property
1 parent 0061c67 commit 6aa415a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

exercises/concept/bird-watcher/.docs/introduction.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ int secondElement = twoInts[1];
4646
Accessing an index that is outside of the valid indexes for the array results in an `IndexOutOfBoundsException`.
4747

4848
Arrays can be manipulated by either calling an array instance's methods or properties, or by using the static methods defined in the `Arrays` class (typically only used in generic code).
49-
The most commonly used property for arrays is its length which can be accessed like this:
49+
The `length` property holds the length of an array.
50+
It can be accessed like this:
5051

5152
```java
5253
int arrayLength = someArray.length;

0 commit comments

Comments
 (0)