16.下列程序的输出结果为 public class Short{ public static void main(String args[]){ StringBuffer s= 15
16.下列程序的输出结果为publicclassShort{publicstaticvoidmain(Stringargs[]){StringBuffers=newStr...
16.下列程序的输出结果为
public class Short{
public static void main(String args[]){
StringBuffer s=new StringBuffer("Hello");
if((s.length()>5)&&(s.append("there").equals("False")));
System.out.println("value is "+s);
}
}
A、value is Hello
B、value is thereHello
C、value is Hellothere
D、编译错误 展开
public class Short{
public static void main(String args[]){
StringBuffer s=new StringBuffer("Hello");
if((s.length()>5)&&(s.append("there").equals("False")));
System.out.println("value is "+s);
}
}
A、value is Hello
B、value is thereHello
C、value is Hellothere
D、编译错误 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询