Kotlinlearncs.online LogoJava
Return to List

Solve: conCat

Imported By: Geoffrey Challen
/ Version: 2021.6.0

Given two Strings, concatenate them and return the result. However, if the concatenation creates a double character where the Strings are joined, then omit one of the characters. So "abc" and "cat" yields "abcat", not "abccat".

fun conCat(
a: String,
b: String,
): String {
return "" // You may need to remove this starter code

Related Lessons

Stuck? You may find these lessons helpful: