StringBuilder:
capacity:字符串的容量大小,默认为16
length:字符的个数,默认是0
//构造方法构造指定字符串
StringBuilder s1 = new StringBuilder("ddddddddd");
//创建字符数组
char[] s2 =new char[]{'1','2','3','4','6'};
//指定位置字符复制到另一个数组当中,
s1.getChars(0,2,s2,0);
//输出结果:dd346
//复制到s2中,会覆盖掉前两个字符
System.out.println(s2);