public static Vector padLeft(Collection strings){
  Vector v=new Vector();
  int length=maxLength(strings);
  for (Iterator i=strings.iterator(); i.hasNext(); ) {
    String string=(String)i.next();
    v.add(padLeft(string,length));
  }
  return v;
}

public static Vector padLeft ( Collection strings ) { Vector v = new Vector ( ) ; int length = maxLength ( strings ) ; for ( Iterator i = strings . iterator ( ) ; i . hasNext ( ) ; ) { String string = ( String ) i . next ( ) ; v . add ( padLeft ( string , length ) ) ; } return v ; }
returns a collection of strings based on the given collection but with all strings padded on the left to the length of the longest one .
