February 2014
Beginner
1248 pages
62h 25m
English
String method concat (Fig. 14.7) concatenates two String objects (similar to using the + operator) and returns a new String object containing the characters from both original Strings. The expression s1.concat(s2) at line 13 forms a String by appending the characters in s2 to the those in s1. The original Strings to which s1 and s2 refer are not modified.
Read now
Unlock full access