CSE-8B / PA5 / Starter / BasicMethods.java
BasicMethods.java
Raw
public interface BasicMethods {
    /**
     * Adds element to the datastructure.
     *
     * @param element - element to be added.
     */
    void add(int element);

    /**
     * Gets size of datastructure.
     *
     * @return int - size of the datastructure
     */
    int size();
}