Kotlinlearncs.online LogoJava
Return to List

Solve: At First

Imported By: Geoffrey Challen
/ Version: 2021.6.0

Given a non-null 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.

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

Related Lessons

Stuck? You may find these lessons helpful: