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, 23.06.2019 07:30
What part of the interface displays the external references contained in a selected cell? the status bar the review tab the scroll bar the formula bar
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
question
Computers and Technology, 24.06.2019 18:00
Hacer un algoritmo que me permita ingresar el nombre de una parcela de terreno y muestre junto al mensaje “tipo de suelos: suelos fumíferos, ¡excelente!
Answers: 1
question
Computers and Technology, 24.06.2019 22:00
Aobject is used for displaying the results of a question based on stored data. a. query b. report c. table d. form
Answers: 2
You know the right answer?
How many times will line 7 be executed when the following code is run? String str = "rebellion";
Questions
question
Mathematics, 18.12.2020 14:00
question
Mathematics, 18.12.2020 14:00
question
Mathematics, 18.12.2020 14:00
question
Mathematics, 18.12.2020 14:00
question
History, 18.12.2020 14:00
Questions on the website: 13722360