protected static void justifyRight(Appendable a, CharSequence csq, char pad, int width) throws IOException {
        final int padLen = width - csq.length();
        for (int i = 0; i < padLen; i++) a.append(pad);
        a.append(csq);
    }
protected static void justifyRight ( Appendable a , CharSequence csq , char pad , int width ) throws IOException { final int padLen = width - csq . length ( ) ; for ( int i = 0 ; i < padLen ; i ++ ) a . append ( pad ) ; a . append ( csq ) ; }
Appends {@code csq} to {@code a}, right-justified.
@param a
@param csq
@param pad padding character
@param width minimum of characters that will be written
@throws IOException