题目内容:
public class test {
public static void main(String[] args)
{
Object x="hello";
String s="good bye";
char cc[]={.a.,.b.,.c.,.d.,.e.,.f.};
boolean b=false;
char c=.Z.;
float f=2.5f;
StringBuffer buf=new StringBuffer();
buf.append(x); buf.append(. .);
buf.append(s); buf.append(. .);
buf.append(cc); buf.append(. .);
buf.append(cc,0,3); buf.append(. .);
buf.append(b); buf.append(. .);
buf.append(c); buf.append(. .);
buf.append(f); buf.append(. .);
System.out.println("buf="+buf);
}
}
这段程序执行后的结果是?
参考答案: