Write a recursive method tripleChar(String s, char c) that takes a string s and a character c.
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a recursive method tripleChar(String s, char c) that takes a string s and a character c. The method returns the string s with all the occurrences of c repeated 3 times.
Related Book For
Java How To Program Late Objects Version
ISBN: 9780136123712
8th Edition
Authors: Paul Deitel, Deitel & Associates
Posted Date: