public static String pad(Object obj,int totalChars){
  return pad(obj.toString(),totalChars);
}

public static String pad ( Object obj , int totalChars ) { return pad ( obj . toString ( ) , totalChars ) ; }
pads the tostring value of the given object .
