StringBuilder[] s = new StringBuilder[10];//数组中的元素是null s[0] = new StringBuilder();//这里要实例化才能用s[0] s[0].XXX ....