Kotlinlearncs.online LogoJava
Return to List

Solve: Start Oz

Imported By: Geoffrey Challen
/ Version: 2021.4.0

Given a string, return a string made of the first 2 chars (if present), however include the first char only if it is 'o' and include the second only if it is 'z', so "ozymandias" yields "oz".

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

Related Lessons

Stuck? You may find these lessons helpful: