搜题
问题   更新时间2023/4/3 12:59:00

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);
 }
}
这段程序执行后的结果是?

您的答案: hello good bye abcdef abc false Z 2.5
王老师:19139051760(拨打)