subject

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?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:40
How do i get the most points, without any effort?
Answers: 2
question
Computers and Technology, 22.06.2019 18:30
The "instance" relationship shows that something is an object of a
Answers: 1
question
Computers and Technology, 23.06.2019 11:30
Which excel file extension stores automated steps for repetitive tasks?
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Idonโ€™t understand the double8 coding problem. it is java
Answers: 1
You know the right answer?
Consider the following code segment, where twoD is a two-dimensional (2D) String array. The code seg...
Questions
question
Engineering, 30.12.2021 01:00
Questions on the website: 13722362