public static String padRight(String str, int len, char padChar)
	{
		Parameters.checkNotNull(str);
		Parameters.checkCondition(len >= 0);
		StringBuilder sb = new StringBuilder(len);
		sb.append(str);
		while (sb.length() < len) {
			sb.append(padChar);
		}
		return sb.toString();
	}
public static String padRight ( String str , int len , char padChar ) { Parameters . checkNotNull ( str ) ; Parameters . checkCondition ( len >= 0 ) ; StringBuilder sb = new StringBuilder ( len ) ; sb . append ( str ) ; while ( sb . length ( ) < len ) { sb . append ( padChar ) ; } return sb . toString ( ) ; }
Returns a {@code String} of length at least {@code len} created by
appending as many copies of {@code padChar} as necessary to reach
that length.

@param str the {@code String} to pad.
@param len the result's minimum length.
@param padChar the padding character.

@return the padded {@code String}.

@throws NullPointerException if {@code str} is {@code null}.
@throws IllegalArgumentException if {@code len} is negative.