java_函数手册_String_1.7_concat_字符串结尾连接
1 package calssString; 2 3 public class concat___1_7 { 4 public static void main(String[] args) { 5 String strCom = "I LIKE "; 6 String strCom2 = "java"; 7 System.out.println(strCom.concat(strCom2.concat(strCom)).concat(strCom2)); 8 9 } 10 }