Kotlinlearncs.online LogoJava
Return to List

Solve: At First

Imported By: Geoffrey Challen
/ Version: 2021.6.0

Given a String, return a String with length 2 made of its first 2 characters. If the string length is less than 2, use '@' for the missing characters.

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

Related Lessons

Stuck? You may find these lessons helpful: