subject

What is the output of the code snippet given below? String s = "abcde"; int i = 1; while (i < 5) { System. out. print(s. substring(i, i + 1)); i++; }

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:20
Write a program called assignment3 (saved in a file assignment3.java) that computes the greatest common divisor of two given integers. one of the oldest numerical algorithms was described by the greek mathematician, euclid, in 300 b.c. it is a simple but very e↵ective algorithm that computes the greatest common divisor of two given integers. for instance, given integers 24 and 18, the greatest common divisor is 6, because 6 is the largest integer that divides evenly into both 24 and 18. we will denote the greatest common divisor of x and y as gcd(x, y). the algorithm is based on the clever idea that the gcd(x, y) = gcd(x ! y, y) if x > = y and gcd(x, y) = gcd(x, y ! x) if x < y. the algorithm consists of a series of steps (loop iterations) where the “larger” integer is replaced by the di↵erence of the larger and smaller integer. this continues until the two values are equal. that is then the gcd.
Answers: 3
question
Computers and Technology, 23.06.2019 17:30
What are the most commonly found items in the trash according to the municipal solid waste report?
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
Create a file called favorite_foods, and list your favorite foods, entering five or six or more. press enter after each favorite food so it appears on its own line (make certain you also press enter after the final food item). after the file is created, add two more foods you like that are not on the list (press enter after the final food item). view the list of foods to make certain the two items you added appear at the end of the list
Answers: 2
question
Computers and Technology, 25.06.2019 08:10
Is a philosophy and a software and system development methodology that focuses on the development, use, and reuse of small, self-contained blocks of codes to meet the software needs of an organization.joint application designextreme programmingrapid application developmentservice-oriented architecture
Answers: 1
You know the right answer?
What is the output of the code snippet given below? String s = "abcde"; int i = 1; while (i < 5)...
Questions
question
Mathematics, 11.08.2021 04:50
question
Health, 11.08.2021 04:50
question
Arts, 11.08.2021 04:50
question
Chemistry, 11.08.2021 04:50
question
Mathematics, 11.08.2021 04:50
question
Chemistry, 11.08.2021 04:50
question
Mathematics, 11.08.2021 04:50
question
Mathematics, 11.08.2021 04:50
question
Mathematics, 11.08.2021 04:50
Questions on the website: 13722363