aspose file tools*
The moose likes Java in General and the fly likes Can The Solution of the problem which i have solved  can be further more improvised Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

Can The Solution of the problem which i have solved can be further more improvised

Rahul Shivsharan
Ranch Hand

Joined: Jun 17, 2009
Posts: 83
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" . ........ the code that i have written is as follows
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19722
    
  20

Please Use One Thread Per Question. You should have posted this in your previous post. Let's continue there; I'll put a link to this (now closed) thread.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can The Solution of the problem which i have solved can be further more improvised