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 "hheeoo".

Solved
Show answers

Ask an AI advisor a question