Kotlinlearncs.online LogoJava
Return to List

Solve: String Times

Imported By: Geoffrey Challen
/ Version: 2021.4.0

Given a String and a non-negative Int, return a String that is n copies of the original string.

fun stringTimes(
input: String,
n: Int,
): String {
return "" // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: