4 This line declares anew variable called weekDays and makes this new variable refer to anew Array object that can hold seven elements.
Note The concept of arrays as objects is discussed later this unit. The seven statements that follow
this line assign the Strings "Monday" -
"Sunday" to
the array elements weekDays[0] to
weekDays[6] respectively.
Share with your friends: