EmilyRamos7585 EmilyRamos7585
  • 07-02-2024
  • Computers and Technology
contestada

What is the output of the code snippet given below
String s = "12345";
int i = 1;
do
{
if (i > 1)
{
System (s.substring(i, i + 1));
}
}
while (i < 5);
a) No output
b) No output (infinite loop)
c) 12345
d) 2345

Respuesta :

Otras preguntas

Hi can someone help me solve this :)
Which three statements accurately describe modern China?China is the world’s largest country by population, with over 1.3 billion people.China became a communis
Which of these are possible symptoms of fetal alcohol syndrome A. Emphysema and birth defects B. Cognitive disabilities and birth defects C. Cognitive disabil
What is “An Episode of War” by Stephen Crane primarily about?
Describe a situation in which a government has a great deal of power but does not have political authority. Then explain whether you think the rule of law would
Which of the following was not a result of the Sputnik launch? D is incorrect. A) the founding of NASA B) increased American confidence C) fear of Soviet nuclea
Write the function , √(x^3+6)/√(x^3-9) as a composition of three or more non-identity functions.
Why was Thomas Aquila’s important to the church
A football team had 4 big mistakes in a game. Because of these mistakes, the team lost a total of 60 yards. On average, how much did the team's yardage change p
Why was Thomas Aquila’s important to the church