The blanks are filled below.
The type of the formal parameter array
is String[]
.
This says that a reference to an array of String
references is expected,
but does not say how long the array is.
Also, notice how this static method is used in main()
.
Continue developing the program.
The for
loop looks through the cells of the array one by one starting at cell 0.
Fill in the first blank so that it does this.
However, unless it is full,
not all cells of the array contain a String
reference.
Cells that contain null
must be skipped.
Fill in the second blank to do this.
Fill in the blanks.