编程实现两个字符串的连接。
public class Example46 {
public static void main(String[] args) {
addString("hello"," world!");
}
public static void addString(String s1,String s2){
String s3=s1+s2;
System.out.println("字符串"+s1+" 和字符串"+s2+"连接后为:"+s3);
}
}