16.8. Concatenating StringsLike the & operator, the String class's Shared method Concat (Fig. 16.7) can be used to concatenate two Strings. The method returns a new String containing the combined characters from both original Strings. Line 13 appends the characters from string2 to the end of a copy of string1, using method Concat. The original Strings are not modified. Figure 16.7. Concat Shared method.
|