============= String Buffer ============= -------- Examples -------- Java ==== .. code-block:: java public String joinWords(String[] words) { String sentence = ""; for (String w : words) { sentence = sentence + w; } return sentence; } .. code-block:: java public String joinWords(String[] words) { StringBuffer sentence = new StringBuffer(); for (String w : words) { sentence.append(w); } return sentence.toString(); }