Biblioteca Java - Blame information for rev 39
Subversion Repositories:
Rev | Author | Line No. | Line |
---|---|---|---|
39 | mihai | 1 | package introducere.java.operator; |
4 | mihai | 2 | |
3 | /** | ||
4 | * The + operator can also be used for concatenating (joining) two | ||
5 | * strings together, as shown in the following ConcatDemo. | ||
6 | */ | ||
7 | |||
8 | class ConcatDemo { | ||
9 | public static void main(String[] args){ | ||
10 | String firstString = "This is"; | ||
11 | String secondString = " a concatenated string."; | ||
12 | String thirdString = firstString+secondString; | ||
13 | System.out.println(thirdString); | ||
14 | } | ||
15 | } |