private static int getMaxStringLength ( String [ ] names ) { int size = 0 ; for ( String s : names ) { if ( s . length ( ) > size ) { size = s . length ( ) ; } } return size ; }
Finds the max length of a list of strings Useful for producing mmCIF single - record data that is aligned for all values .