Kotlinlearncs.online LogoJava
Return to List

Solve: Extra Front

Imported By: Geoffrey Challen
/ Version: 2021.5.0

Given a String, return a new String made of 3 copies of the first 2 chars of the passed String. The String may be any length. If there are fewer than 2 chars, use whatever is there.

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

Related Lessons

Stuck? You may find these lessons helpful: