115, Java class String in the string concatenation using concat

01. code is as follows:

Package TIANPAN; 

/ ** 
 * Notes document here 
 * 
 * @author Tin Pan micro-channel 382 477 247
  * / 
public  class TestDemo {
     public  static  void main (String args []) { 
        String STR = "Hello" .concat ( "World") ;         // equivalent to "+" 
        System.out.println (STR); 
    } 
}

 

02. Results are as follows:

 

 

Knowledge has a price, if you think this article valuable, authors agree to pay, micro-channel two-dimensional code can be any amount of a reward to the author (Micro Signal: 382 477 247) Oh, thank you.

 

Guess you like

Origin www.cnblogs.com/tianpan2019/p/12332536.html