Biblioteca Java - Rev 4

Subversion Repositories:
Rev:
package inroducere.java.operator;

/**
 * The + operator can also be used for concatenating (joining) two
 * strings together, as shown in the following ConcatDemo.
 */


class ConcatDemo {
    public static void main(String[] args){
         String firstString = "This is";
         String secondString = " a concatenated string.";
         String thirdString = firstString+secondString;
         System.out.println(thirdString);
    }
}