You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (a.substring(a.length() - 1).equals(b.substring(0,1))){
result = a + b.substring(1);
returnresult;
}
result = a+b;
returnresult;
}
/*
Given two strings, append them together (known as "concatenation") and return the result. However, if the concatenation creates a double-char, then omit one of the chars, so "abc" and "cat" yields "abcat".