X1013: Nested For Loops for Repeating Actions

The method below takes a String parameter called str. Complete the method so that it returns a new string where each each character in the original string has been repeated 3 times. For example if the string given is "cat", the string returned should be "cccaaattt". Finish the nested for loops so the method behaves correctly.

Your Answer:

Feedback

Your feedback will appear here when you check your answer.