Skip to content

Commit c39cad8

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

concepts/arrays/introduction.md

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

4646
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).
47-
The most commonly used property for arrays is its length which can be accessed like this:
47+
The `length` property holds the length of an array.
48+
It can be accessed like this:
4849

4950
```java
5051
int arrayLength = someArray.length;

0 commit comments

Comments
 (0)