public static String leftPad(String str,int size,String delim){
  size=(size - str.length()) / delim.length();
  if (size > 0) {
    str=repeat(delim,size) + str;
  }
  return str;
}

public static String leftPad ( String str , int size , String delim ) { size = ( size - str . length ( ) ) / delim . length ( ) ; if ( size > 0 ) { str = repeat ( delim , size ) + str ; } return str ; }
left pad a string with a specified string . pad to a size of n .
