private String formatNames(String[] names,int startIndex){
  StringBuilder sb=new StringBuilder();
  if (names != null) {
    for (    String name : names) {
      sb.append(name.substring(startIndex));
      sb.append('\n');
    }
  }
  return sb.toString();
}

private String formatNames ( String [ ] names , int startIndex ) { StringBuilder sb = new StringBuilder ( ) ; if ( names != null ) { for ( String name : names ) { sb . append ( name . substring ( startIndex ) ) ; sb . append ( '\n' ) ; } } return sb . toString ( ) ; }
converts an array of strings to a string delimited by a new line character for display purposes
