Kotlinlearncs.online LogoJava
Return to List

Solve: altPairs

Imported By: Geoffrey Challen
/ Version: 2021.5.0

Given a String, return a String made of the chars at indexes 0,1, 4,5, 8,9, and so on. So "kittens" yields "kien".

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

Related Lessons

Stuck? You may find these lessons helpful: