Welcome to Westonci.ca, where finding answers to your questions is made simple by our community of experts. Our platform offers a seamless experience for finding reliable answers from a network of knowledgeable professionals. Explore comprehensive solutions to your questions from knowledgeable professionals across various fields on our platform.

Forgot the Spaces
Oops, you've just written a very short paper for your science class and forgot to put spaces after the periods. Instead of retyping everything like a savage, you decided to write a program to do it for you.

The method forgotSpaces will take a single parameter str that will contain exactly 2 periods, and no period will be at the end of str, but a period could be the first character.

You may assume that no periods already have spaces after them.

forgotSpaces(".hello.there") => ". hello. there"
forgotSpaces("hi.b.ob") => "hi. b. ob"
forgotSpaces("comp.sci.rocks") => "comp. sci. rocks"
forgotSpaces(".at.the beginning") => ". at. the beginning"
forgotSpaces("..!") => ". . !"

Sagot :

We hope our answers were helpful. Return anytime for more information and answers to any other questions you may have. Thank you for choosing our platform. We're dedicated to providing the best answers for all your questions. Visit us again. Thank you for visiting Westonci.ca, your go-to source for reliable answers. Come back soon for more expert insights.