错误代码如下:public class testA {
public static void main(String[] args) {
StringBuilder[] sb=new StringBuilder[4];
byte[] b=new byte[10];
for (int i = 0; i < sb.length; i++) {
for (int j = 0; j < b.length;j++) {
sb[i].append(b[j]);
}
}
for (int i = 0; i < sb.length; i++) {
System.out.println(sb[i]);
}
}
} |