Answer:
Replace missing expression with:
keyboard[2][2].toLowerCase()+keyboard[1][0]+keyboard[0][4]
Step-by-step explanation:
Given
The above code segment
Required
Which code displays "Cat"
First, we need to identify the location of C, a and t in the array
i.e. C is at the 2nd row index and 2nd column index
i.e. a is at the 1st row index and 0 column index
i.e. t is at the 0 row index and 4th column index
Next convert C to lowercase.
This is done using: toLowerCase() method.
So, we have: keyboard[2][2].toLowerCase()
Next, we concatenate each of the above.
i.e. keyboard[2][2].toLowerCase()+keyboard[1][0]+keyboard[0][4]
Lastly, the statement is printed:
System.out.println(keyboard[2][2].toLowerCase()+keyboard[1][0]+keyboard[0][4]);