private static String getTitle ( final int [ ] widths ) { StringBuffer buf = new StringBuffer ( "Column widths: " ) ; for ( int i = 0 ; i < widths . length ; i ++ ) { if ( i > 0 ) { buf . append ( ", " ) ; } buf . append ( widths [ i ] ) ; } return buf . toString ( ) ; }
Concatenates column widths to form the heading text for the example .