Concatenate another string onto the end of this string. This can be used to initialize a string, as well as add a new one to the end. If n is zero, concatenate to the end of source, else concatenate only 'n' bytes. @return TextData - the new string @param source -the parameter to be appended (as a string) @param n -the maximum number of characters to be appended
If the length of the argument string is 0
, then this String
object is returned. Otherwise, a new String
object is created, representing a character sequence that is the concatenation of the character sequence represented by this String
object and the character sequence represented by the argument string.
Examples:
@param str the"cares".concat("s") returns "caress" "to".concat("get").concat("her") returns "together"
String
that is concatenated to the endof this String
.
@return a string that represents the concatenation of this object'scharacters followed by the string argument's characters.
Concatenate another string onto the end of this string. This can be used to initialize a string, as well as add a new one to the end. If n is zero, concatenate to the end of source, else concatenate only 'n' bytes. @return TextData - the new string @param source -the parameter to be appended (as a string) @param n -the maximum number of characters to be appended
|
|
|
|
|
|
|
|
|
|
|
|
|
|