??????ò???
????1) ????????????????????????????String ?????????????????????StringBuilder ?????????????????????StringBuffer??
????2) ??????String???”+”???????????????????????????????????????StringBuffer??StringBuilder??????Java??????????????????????????磺
????String result = "";
????for (String s : hugeArray) {
????result = result + s;
????}
????// ???StringBuilder
????StringBuilder sb = new StringBuilder();
????for (String s : hugeArray) {
????sb.append(s);
????}
????String result = sb.toString();
??????????????????????????????????????????????????????????????????????String result???????????????????????????.
????3) StringBuilder???????????????????????”+”???????????????????????????????????????StringBuffer??????????????С?
????4) ??????????? StirngBuilder ?????? StringBuffer ?????? 10%~15% ???????????????????e??????????????????????????黯????У?????????????????????????????ж?????????????????????????У??????????????????????? StringBuffer ???????????????鯔???????????????£?????????StringBuilder??????????StringBuffer??