Lab 1 - Orientation
Due: Monday, January 30, 2006

Introduction

Today was just a "getting acquainted" lab. Its real purpose in life is to make sure that we're all on the same page coming out of 15-100. If you had difficulty completing this lab in class, or shortly thereafter, please (pretty please!) see one of us for help.

The Assignment

Your assignment is to flesh out the following simple class:

    class SimpleCollection {
      // The underlying stoarage should be an array of Object references

      
      /*
       * This method adds the referenced Object to the collection. It
       * should never fail -- so the underlying storage should grow
       * as appropriate (think helper method). There should be no
       * duplicate elimination or other unnecessary complexity
       */
      public void add (Object o) {
      }


      /* 
       * This method should return true if, and only if, an object referenced
       * within the collection equals() the object referenced by the 
       * argument 
       */
      public boolean contains (Object o) {
      }
    }