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 19:40
What is kwashiorkor and how does it affect a person and their health?
Answers: 1
question
Advanced Placement (AP), 23.06.2019 07:20
Asmall french-themed cafe has just introduced a quiche, a baked dish made with a pastry crust and a filling of beaten eggs and cream. quiche is frequently flavored by adding vegetables, meat and seafood. what does the chef ask the prep cooks to do so the vegetables in the dish bake evenly? a. choose special out-of-season vegetables b. wash the vegetable dishes extra clean c. label all the vegetable ingredients d. cut the vegetable pieces into the same size e. cut the vegetable pieces into a wide variety of interesting shapes
Answers: 3
question
Advanced Placement (AP), 23.06.2019 11:30
Marian is itemizing deductions on her federal income tax return and had $1500 in non-reimbursed work expenses last year. if her agi was $46,000, and if non-reimbursed work expenses are deductible to the extent that they exceed 2 % of a taxpayer's agi, how much can marian deduct for non- reimbursed work expenses? a: $30 b: $580 c: $920 d: $1470
Answers: 1
question
Advanced Placement (AP), 23.06.2019 14:00
Which of the following is characteristic of an ethnic religion? a.) the religion has spread far beyond its hearth. b.) the religion is not focused on a particular region. c.) the religion is centered on the message of a prophet. d.) the religion attempts to appeal to people everywhere. e.) the religion does not actively try to convert others
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
Advanced Placement (AP), 18.03.2021 08:20
question
Mathematics, 18.03.2021 08:20
question
Mathematics, 18.03.2021 08:20
Questions on the website: 13722363