pubic class test {
pubLic static void mb ( StringBuffer x , StringBuffer Y )
X . append ( y );
public static void main ( String [] args ){ //args :{}
StringBuffer a = new StringBuffer (" A ");// a :" AB "
StringBuffer b = new StringBUffer (" B "); //b :" B "
mb ( a , b );
System . out . println ( a +","+ b );
//a :" AB " b :" B "
想问一下这个为什么输出还是ABB,那个y=x没有作用吗?