public class StringLianJie {
public static void main(String[] args) {
String s="Marry like drinking coffee,"; //当前串
String s1="Tom like it too."; //参数串
String s2=s.concat(s1); //使用concat方法连接字符串
System.out.println("新串为:"+s2); //打印连接后的字符串
}
}