Kotlinlearncs.online LogoJava
Return to List

Solve: Double Char

Imported By: Geoffrey Challen
/ Version: 2021.7.0

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

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

Related Lessons

Stuck? You may find these lessons helpful: