Kotlinlearncs.online LogoJava
Return to List

Solve: notString

Imported By: Geoffrey Challen
/ Version: 2021.4.0

Given a String, return a new String where "not " has been added to the front. However, if the String already begins with "not", return the string unchanged.

fun notString(input: String): String {
return "" // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: