Source of 13.13.java


  1: public boolean contains(T anEntry)
  2: {
  3:    checkInitialization();
  4:    boolean found = false;
  5:    int index = 1;
  6:    while (!found && (index <= numberOfEntries))
  7:    {
  8:       if (anEntry.equals(list[index]))
  9:          found = true;
 10:       index++;
 11:    } // end while
 12:    return found;
 13: } // end contains
 14: // Version 4.0