public static String pad(String original,int length,char padChar){
  if (original.length() >= length)   return original;
  StringBuilder sb=new StringBuilder(original);
  while (sb.length() < length) {
    sb.append(padChar);
  }
  return sb.toString();
}

public static String pad ( String original , int length , char padChar ) { if ( original . length ( ) >= length ) return original ; StringBuilder sb = new StringBuilder ( original ) ; while ( sb . length ( ) < length ) { sb . append ( padChar ) ; } return sb . toString ( ) ; }
pad the string with the specific character to ensure the string is at least the specified length .
