19. 下面程序的运行结果是( )
public static void main(String[] args){
StringBuffer sb = new StringBuffer();
sb.append("qq").append("ww");
show(sb,"ss");
System.out.println(sb.length());
}
static void show(StringBuffer sb,String str){
sb.append(str);
}
a) 4
b) 2
c) 6
d) 0
|
|