1: @author Frank M. Carrano, Timothy M. Henry 2: @version 5.0 3: public int getFrequencyOf(T anEntry) 4: { 5: checkIntegrity(); 6: int counter = 0; 8: for (int index = 0; index < numberOfEntries; index++) 9: { 10: if (anEntry.equals(bag[index])) 11: { 12: counter++; 13: } // end if 14: } // end for 16: return counter; 17: } // end getFrequencyOf