What are three ways you can use the square brackets [ ] with an array name?
What will be an ideal response?
First, the square brackets can be used to create a type name, such as double[] score. Second, the square brackets can be used with an integer value as part of the special syntax Java uses to create a new array, as in score = new double[5]. The third use of square brackets is to name an indexed variable of the array, such as score[1].
You might also like to view...
It’s possible to access the items in a collection using __________.
a. an integer index of the item to be retrieved b. the Item method to retrieve an item with a specific key value c. a For Each loop d. all of the above
A ________ is a network where the nodes are in close physical proximity to each other.
A. local area network B. wide area network C. satellite system D. cable system