public static String formatHeader ( int [ ] maximums , String [ ] headers ) { StringBuilder sb = new StringBuilder ( ) ; for ( int i = 0 ; i < headers . length ; i ++ ) sb = sb . append ( formatIn ( headers [ i ] , maximums [ i ] , false ) ) . append ( GAP ) ; return sb . toString ( ) ; }
formats a header row after maximums have been established .