logo Practice-It logo

BJP4 Self-Check 7.2: numbersElements

Language/Type: Java arrays syntax
Author: Marty Stepp (on 2016/09/08)

Assume that the following array has been defined, though you do not necessarily know its length.

int[] numbers = new int[??];

What expression should be used:

To access the first element?
To access the last element, assuming was created with length 10?
To access its last element, regardless of its length?

You must log in before you can solve this problem.

Log In

If you do not understand how to solve a problem or why your solution doesn't work, please contact your TA or instructor.
If something seems wrong with the site (errors, slow performance, incorrect problems/tests, etc.), please

Is there a problem? Contact a site administrator.