subject
Advanced Placement (AP), 07.04.2021 04:40 chem64

Consider the following code segment, where twoD is a two-dimensional (2D) String array. The code segment is intended to display "JAVA". System. out. print(twoD[2][1]);

System. out. print(twoD[3][2]);

System. out. print(twoD[1][1]);

Which of the following code segments properly declares and initializes twoD so that the code segment works as intended?

A) String[][] twoD = {{"V", "AV", "J"}, {"JA", "VA", "A"},

{"JA", "J", "JAV"}, {"AV", "V", "A"}};

B) String[][] twoD = {{"VA", "J", "A", "V"}, {"J", "A", "V", "A"},

{"AV", "A", "JA", "V"}};

C) String[][] twoD = {{"VA", "J", "V", "JA"}, {"J", "JA", "A", "VA"},

{"J", "VA", "A", "V"}};

D) String[][] twoD = {{"A", "VA", "J", "V"}, {"VA", "A", "JA", "V"},

{"VA", "J", "A", "V"}};

E) String[][] twoD = {{"A", "V"}, {"VA", "J"}, {"J", "A"}, {"A", "AV"}};

ansver
Answers: 2

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 22.06.2019 08:00
Find the mean and range 26 19 23 399 31 34 25
Answers: 1
question
Advanced Placement (AP), 24.06.2019 08:00
What are the countries in south asia?
Answers: 1
question
Advanced Placement (AP), 25.06.2019 04:30
Which of the following tools can be used to determine humidity? select all that apply. barometer: hygrometers: anemometer: hair: thermometer
Answers: 1
question
Advanced Placement (AP), 26.06.2019 00:50
If a(x) and b(x) are linear functions with one variable, which of the following expressions produces a quadratic function? (ab)(x) (a – b)(x) (a + b)(x)
Answers: 2
You know the right answer?
Consider the following code segment, where twoD is a two-dimensional (2D) String array. The code seg...
Questions
question
Mathematics, 22.07.2021 20:00
question
Social Studies, 22.07.2021 20:00
question
Mathematics, 22.07.2021 20:00
question
Social Studies, 22.07.2021 20:00
Questions on the website: 13722367