question: static String toS ( float [ ] a ) { String s = "[" ; if ( a == null ) { return "[null]" ; } for ( int i = 0 ; i < a . length ; i ++ ) { if ( i != 0 ) { s += " , " ; } String t = df . format ( a [ i ] ) + "       " ; s += t . substring ( 0 , 7 ) ; } s += "]" ; return s ; }
target:  convert an array of floats to fixed length strings