Question: In Java Given two strings, append them together (known as concatenation) and return the result. However, if the concatenation creates a double-char, then omit one
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". conCat("abc", "cat")- "abcat" conCat("dog", "cat") "dogcat" conCat("abc, "") "abc
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
