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

In Java  In Java Given two strings, append them together (known as "concatenation")

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!