Kotlinlearncs.online LogoJava
Return to List

Solve: Double Char

Imported By: Geoffrey Challen
/ Version: 2021.7.0

Given a non-null String, return a new String where every character in the original input is doubled. So "The" yields "TThhee".

String doubleChar(String input) {
return ""; // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: