java:
public static void main(String[] args) throws InterruptedException,
IOException {
StringBuilder s1=new StringBuilder();
s1.append("a");
StringBuilder s2=s1;
s2=new StringBuilder();
s2.append("c");
System.out.println(s1);输出a
}
}
void fun(testljg& object)
{
object=testljg();
object.set(10000);
}
int main()
{
testljg ljg=testljg();
fun(ljg);
ljg.show();输出1000
}