?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Moderate

2-Dimensional Array of Shopping Lines

APCSA-TEW36I

Consider the following code segment.

String[][] shoppingLines = {{"Susie", "Ken", "Hank", "Bob"},
                            {"Jan", "Josie", "Kris", "Wendy"},
                            {"Karla", "Nancy", "Geri", "Tom"}};
System.out.println(shoppingLines[3][1]);

What is the output once this segment of code has been executed?

A

Karla.

B

Nancy.

C

Wendy.

D

Hank.

E

An error is thrown.