import java.util.Vector;
/* A class containing two methods called printArray
 * Note that they do the same thing but take different
 * arguments.
 */
public class Helper {
  public static void printArray(int[] a) {
    for(int i = 0; i < a.length; i++) {
      System.out.print(a[i] + " ");
    }
    System.out.println("");
  }
  
  public static void printArray(String[] a) {
    for(int i = 0; i < a.length; i++) {
      System.out.print(a[i] + " ");
    }
    System.out.println("");  
  }
  
  /* We only need to write one print method for Vectors
   * since we can ask each element of the Vector to give
   * its string representation.
   */
  public static void printVector(Vector v) {
  	for(int i = 0; i < v.size(); i++) {
  		/* When we try to print out the object returned
  		 * by v.get(i), the toString method of the object
  		 * is called.
  		 */
  		System.out.print(v.get(i) + " ");
  	}
  	System.out.println("");
  }
}