public String concatenate(String start,List<String> chunks){
  StringBuffer buf;
  if (start == null) {
    buf=new StringBuffer();
  }
 else {
    buf=new StringBuffer(start);
  }
  if (chunks != null) {
    for (    String chunk : chunks) {
      if (chunk != null) {
        buf.append(chunk);
      }
    }
  }
  return (buf.length() == 0) ? null : buf.toString();
}

public String concatenate ( String start , List < String > chunks ) { StringBuffer buf ; if ( start == null ) { buf = new StringBuffer ( ) ; } else { buf = new StringBuffer ( start ) ; } if ( chunks != null ) { for ( String chunk : chunks ) { if ( chunk != null ) { buf . append ( chunk ) ; } } } return ( buf . length ( ) == 0 ) ? null : buf . toString ( ) ; }
concatenates a single string and a list of string into a single long string .
