0
/ 50
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 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 feedback will appear here when you check your answer.