Mark As Completed Discussion

Are you sure you're getting this? Fill in the missing part by typing it in.

To access an element in an array, you use the array variable name followed by the _ inside square brackets. For example, numbers0 would access the first element of the numbers array.

In the given code snippet, what is the missing term in the blank?

TEXT/X-JAVA
1int[] numbers = {1, 2, 3, 4, 5};
2
3// Accessing elements of an array by index
4System.out.println(numbers[0]); // Output: 1
5System.out.println(numbers[2]); // Output: 3
6System.out.println(numbers[4]); // Output: 5

Write the missing line below.