Kotlinlearncs.online LogoJava
Return to List

Solve: First Half

Imported By: Geoffrey Challen
/ Version: 2021.5.0

Given a string of even length, return the first half. So the string "WooHoo" yields "Woo".

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

Related Lessons

Stuck? You may find these lessons helpful: