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 15:50
The file sales data.xlsx contains monthly sales amounts for 40 sales regions. write a sub that uses a for loop to color the interior of every other row (rows 3, 5, etc.) gray. color only the data area, columns a to m. (check the file colors in excel.xlsm to find a nice color of gray.)
Answers: 2
question
Computers and Technology, 22.06.2019 22:00
Discuss the ways in which electronic information associated with payments is addressed in terms of security. include encryption, secure sockets layers, and secure electronic transactions in your discussion. are there any other ways that consumers and businesses can keep their payment information secure in an electronic commerce environment? do you feel that your information is safe when conducting electronic business? why or why not?
Answers: 1
question
Computers and Technology, 23.06.2019 03:00
State 7 common key's for every keyboard
Answers: 1
question
Computers and Technology, 23.06.2019 13:00
Donnie does not have powerpoint. which method would be best for elana to save and share her presentation as is? a pdf a doc an rtf a ppt
Answers: 3
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, 19.08.2020 01:01
question
Mathematics, 19.08.2020 01:01
question
Mathematics, 19.08.2020 01:01
question
Mathematics, 19.08.2020 01:01
question
Mathematics, 19.08.2020 01:01
question
Mathematics, 19.08.2020 01:01
question
Mathematics, 19.08.2020 01:01
Questions on the website: 13722367