Jave,
Given a string, return a string where for every char in theoriginal, there are two chars.
doubleChar(“The”) → “TThhee”
doubleChar(“AAbb”) → “AAAAbbbb”
doubleChar(“Hi-There”) → “HHii–TThheerree”
Expert Answer
An answer will be send to you shortly. . . . .