- class StringBulider {
- public static void main(String[] args){
- StringBulider s1 = new StringBulider("java");
- StringBulider s2 = new StringBulider("hello");
- method_2(s1,s2);
- System.out.println(s1+"------"+s2);}
-
- public static void method_2(StringBulider s1,StringBulider s2)
- {
- s1.append(s2);
- s1= s2;
- }
- }
复制代码 各位看看哪有问题啊
|
|