| about | help | done | prefs | create account |
Java > String-1 > conCat
prev | next | chance
| 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" ...Save, Compile, Run See also Java Example Code. Java help docs: If Boolean Logic | Strings | While and For Loops | Arrays and Loops |
Forget It! -- delete my code for this problem 169.0
Copyright Nick Parlante 2006-10 - privacy