subject

Fill in each blank with the correct answer/output. Assume each statement happens in order and that one statement may affect the next statement. String one = "sambenwilearethebest"; String two = "09876543210"; String three = "02 13 97 68 45 0"; System. out. print( one. length());// LINE 1System. out. print( two. length());// LINE 2System. out. print( three. length());// LINE 3System. out. print( one. charAt( 2 ) );// LINE 4System. out. print( one. charAt( 5 ));// LINE 5System. out. print(one. charAt(one. length()-1));// LINE 6System. out. print( one. charAt( 6 ) );// LINE 7System. out. print( one. substring(0,4) );// LINE 8System. out. print( one. substring(5) );// LINE 9System. out. print( one. substring(9) );// LINE 10System. out. print( one. substring(2,7));/ LINE 11 System. out. print( one. indexOf("abc") ); // LINE 12 System. out. print( one. indexOf("e") ); // LINE 13 System. out. print( one. indexOf("hij") ); // LINE 14 System. out. print( two. indexOf("54")); // LINE 15 System. out. print( two. indexOf("24")); // LINE 16 System. out. print( one. indexOf( 'w' )); // LINE 17 System. out. print( two. indexOf( 'b' )); // LINE 18 System. out. print( two. indexOf( 's' )); // LINE 19 System. out. print( three. indexOf("45")); // LINE 20 1. 20 2. 11 3. 16 4. m 5. n 6. t 7. w 8. samb 9. nwilearethebest 10. earethebest 11. mbenw 12.-1 13. 4 14.-1 15. 5 16.-1 17. 6 18.-1 19.-1 20.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:30
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
1. which of the following is not an example of an objective question? a. multiple choice. b. essay. c. true/false. d. matching 2. why is it important to recognize the key word in the essay question? a. it will provide the answer to the essay. b. it will show you a friend's answer. c. it will provide you time to look for the answer. d. it will guide you on which kind of answer is required.
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
Jack is assisting his younger sibling mary with her mathematics assignment, which includes a study of the number system. jack explains to mary that whole numbers are counting numbers that could be used to record the number of fruits in a basket. which data type represents whole numbers? a.integers.b.floating-point numbers. c.strings.d.boolean
Answers: 1
question
Computers and Technology, 24.06.2019 13:30
To move an excel worksheet tab, simply right-click on it drag and drop it double-click on it delete it
Answers: 1
You know the right answer?
Fill in each blank with the correct answer/output. Assume each statement happens in order and that o...
Questions
question
History, 27.08.2020 21:01
question
Mathematics, 27.08.2020 21:01
question
Mathematics, 27.08.2020 21:01
question
Mathematics, 27.08.2020 21:01
question
Mathematics, 27.08.2020 21:01
Questions on the website: 13722362