A good answer might be:strArray[1] = "World" ; | |
Length of an ArrayRecall these facts about all arrays:
Frequent Bug: It is easy the confuse the length of an array with the number
of slots that contain a reference.
In the example, only two slots contain references to Strings, but
Here is a section of code that declares and constructs the array, and puts some more Strings into it:
| |
QUESTION 4:Must all the Strings be of the same length? Click Here after you have answered the question |