question: private char [ ] applyFloatPadding ( char [ ] ca4 , boolean noDigits ) { char [ ] ca5 = ca4 ; if ( fieldWidthSet ) { int i , j , nBlanks ; if ( leftJustify ) { nBlanks = fieldWidth - ca4 . length ; if ( nBlanks > 0 ) { ca5 = new char [ ca4 . length + nBlanks ] ; for ( i = 0 ; i < ca4 . length ; i ++ ) ca5 [ i ] = ca4 [ i ] ; for ( j = 0 ; j < nBlanks ; j ++ , i ++ ) ca5 [ i ] = ' ' ; } } else if ( ! leadingZeros || noDigits ) { nBlanks = fieldWidth - ca4 . length ; if ( nBlanks > 0 ) { ca5 = new char [ ca4 . length + nBlanks ] ; for ( i = 0 ; i < nBlanks ; i ++ ) ca5 [ i ] = ' ' ; for ( j = 0 ; j < ca4 . length ; i ++ , j ++ ) ca5 [ i ] = ca4 [ j ] ; } } else if ( leadingZeros ) { nBlanks = fieldWidth - ca4 . length ; if ( nBlanks > 0 ) { ca5 = new char [ ca4 . length + nBlanks ] ; i = 0 ; j = 0 ; if ( ca4 [ 0 ] == '-' ) { ca5 [ 0 ] = '-' ; i ++ ; j ++ ; } for ( int k = 0 ; k < nBlanks ; i ++ , k ++ ) ca5 [ i ] = '0' ; for ( ; j < ca4 . length ; i ++ , j ++ ) ca5 [ i ] = ca4 [ j ] ; } } } return ca5 ; }
target:  Apply zero or blank, left or right padding.