subject

How many times will line 7 be executed when the following code is run? String str = "rebellion";

int i = 0;

int j = str. length() - 1;

String result = "";

while (i < j)

{

result = str. substring(i, i + 1) + result + str. substring(j, j + 1);

i++;

j--;

}

System. out. println(result);
(Java)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
How does a policy manual an organization? a. it boost productivity. b. it create awareness in employees about the organization’s values. c. it employees achieve targets. d. it safeguards the organization from liabilities.
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
The graph shows median weekly earnings for full-time workers according to education level. which can you not conclude?
Answers: 2
question
Computers and Technology, 23.06.2019 05:20
Which operating system is a version of linux?
Answers: 1
question
Computers and Technology, 24.06.2019 22:00
What is a number system, and what is the total number of digits used in this system called? a number system is a system that uses different (options: a) numbers b) symbols c) codes d) digits e) alphabets) to represent different numbers. the total number of digits used in a number system is known as its (options: 1) processor 2) converter 3) radix 4) least significant digit 5) most significant digit)
Answers: 1
You know the right answer?
How many times will line 7 be executed when the following code is run? String str = "rebellion";
Questions
question
English, 18.03.2021 01:40
question
Social Studies, 18.03.2021 01:40
question
Mathematics, 18.03.2021 01:40
Questions on the website: 13722367