| AStringSet.java |
package lectures.inheritance;
import util.annotations.WebDocuments;
@WebDocuments({"Lectures/Inheritance.pptx", "Lectures/Inheritance.pdf", "Videos/Inheritance.avi"})
public class AStringSet extends AStringDatabase implements StringDatabase {
public void addElement(String element) {
if (isFull())
System.out.println("Adding item to a full history");
else if (!member(element)) {
// check for duplicate
contents[size] = element;
size++;
}
}
}