logo CodeStepByStep logo

Stutter

Language/Type: C# string
Related Links:
Author: Melissa Hovik (on 2017/07/08)

Write a method named Stutter that accepts a string parameter returns a new string replacing each of its characters with two consecutive copies of that character. For example, a call of Stutter("hello") would return "hheelllloo".

Method: Write a C# method as described, not a complete program or class.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.