subject

Consider the following code segment.

int a = 1;

String result = "";

while (a < 20)

{

result += a;

a += 5;

}

System. out. println(result);

What, if anything, is printed as a result of executing the code segment?

21

161116

161161

16111621

Nothing is printing because of an infinite loop.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:10
When you reach a yield sign, yield to cross traffic and before you enter the intersection. a. flash your headlights b. wait for a signal c. wait five seconds d. wait for a safe gap
Answers: 1
question
Computers and Technology, 22.06.2019 04:30
Ryan is working on the layout of her web page. she needs to figure out where her header, navigation bar, text, and images should go. what technique can her?
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Q14 what is most important for you to choose before you build a network? a. private network b. nos c. network media d. network protocol e. directory service
Answers: 1
question
Computers and Technology, 23.06.2019 06:20
Which text function capitalizes the first letter in a string of text? question 10 options: upper capital first proper
Answers: 1
You know the right answer?
Consider the following code segment.

int a = 1;

String result = "";
Questions
Questions on the website: 13722360