subject

Assuming s is a variable referring a string, n is an int variable, write a for loop to find the number of spaces in s, set that to n. For example, if s refers the string "a b ", then n would be 3; if the string is "ab", then n would be 0 No need to write a program. Hint: using length() , charAt() methods of String class

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:30
Ajeweler designing a pin has decided to use five stones chosen from diamonds, rubies, and emeralds. in how many ways can the stones be selected?
Answers: 3
question
Computers and Technology, 22.06.2019 01:00
What is added to the < meta > tag to describe the encoding type?
Answers: 2
question
Computers and Technology, 23.06.2019 01:30
How do you set up a slide show to play continuously, advancing through all the slides without requiring your interaction? a. click set up slide show, and then select the loop continuously until ‘esc' and show without narration options. b. click set up slide show, and then select the loop continuously until ‘esc' and use timings, if present options. c. click set up slide show, and then select the show presenter view and use timings, if present options. d. click set up slide show, and then select the show without animation and browsed at a kiosk (full screen) options.
Answers: 3
question
Computers and Technology, 24.06.2019 10:00
Each time you save a document, you will need to type in the file type in which it should be saved you can select the save button to save it with the same file name if it has been previously saved you will need to select the location to save the file you will need to use the save as dialog box
Answers: 1
You know the right answer?
Assuming s is a variable referring a string, n is an int variable, write a for loop to find the numb...
Questions
question
History, 23.10.2020 04:01
question
Mathematics, 23.10.2020 04:01
question
Mathematics, 23.10.2020 04:01