/* John Noga COMP182 Lab Exam 1 * Spring 2006 */ import java.util.*; public class MyVector { private int[] theNumbers; private int size, capacity; /* FROM HERE - FROM HERE - FROM HERE - FROM HERE - FROM HERE */ public int sumOfAllEntries() { } public int howManyTimes(int val) { } public void deleteAllOf(int val) { } /* You can use the yourMainMethod method to do any testing you'd like to do (none is also allowed). It will be automatically called when you run the class without any command line parameters. */ public static void yourMainMethod() { } /* TO HERE - TO HERE - TO HERE - TO HERE - TO HERE - TO HERE */ public MyVector() { size = 0; capacity = 5; theNumbers = new int[capacity]; } public void insert(int num) { if (size==capacity) { int[] tmp = new int[capacity+5]; capacity += 5; for (int i=0; i