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, 24.06.2019 10:20
Identify the publisher in this citation: carter,alan.a guide to entrepreneurship.new york: river’2008.print.
Answers: 3
question
Computers and Technology, 24.06.2019 15:00
When a presentation is being planned, it is important to ensure that it covers all available information. appeals to the audience. uses multimedia tools. entertains the audience.
Answers: 1
question
Computers and Technology, 25.06.2019 09:20
The adbusters' image of the gap logo on the silhouette of a head most likely relays the message that: a.the man in the ad needs a hat from the gap b.consumers should be suspicious of gap ads c.gap clothes make you look intelligent d.everyone should have the gap on their minds
Answers: 1
question
Computers and Technology, 25.06.2019 09:30
Network administration is concerned with which tasks? the installation and maintenance of network hardware and software the installation and maintenance of computer operating systems the diagnosis and repair of some types of computer hardware the monitoring of users' activity on a social networking site
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
Mathematics, 17.06.2020 17:57
question
Mathematics, 17.06.2020 17:57
Questions on the website: 13722363