Kotlinlearncs.online LogoJava
Return to List

Homework: Without X2

Imported By: Geoffrey Challen
/ Version: 2021.6.0

Given a non-null String, if one or both of the first 2 characters is 'x', return the string without those characters. Otherwise return it unchanged.

Related Lessons

Stuck? You may find these lessons helpful: