code: private void appendList(StringBuffer buffer, List<Object> list) {
  
          Iterator<Object> iter = list.iterator();
          while (iter.hasNext()) {
              Object entry = iter.next();
              buffer.append(entry).append("<br/>\n");
          }
      }
docs: Appends the contents of a list to the buffer with every entry in a new line.<p>
  
  @param buffer The buffer were the entries of the list will be appended.
  @param list The list with the entries to append to the buffer.