Giter VIP home page Giter VIP logo

cs111cprojectb's Introduction

CS111CProjectB

Interfaces Write an interface for a list that works like this:

entries can only be added to and removed from the beginning or end of the list entries can be accessed in any position entries begin at index 0 Your interface must use generics and this class header:

public interface HeadTailListInterface Note that you are only creating the interface. You are NOT implementing the methods. (You will do that in a future lab!)

Requirements

Your interface must:

compile (20 points) contain these exact method headers with full, complete javadoc-style documentation (80 points) void addFront(T newEntry) void addBack(T newEntry) T removeFront() T removeBack() T getEntry(int position) void display() int contains (T entry) boolean isEmpty() int size() void clear() Each method must use javadoc-style comments. You can review the List and Bag Interfaces files, the Oracle guide (Links to an external site.)Links to an external site., and the video from the Module 3 lectures (Links to an external site.)Links to an external site. for more information about javadoc-style comments. Make sure the documentation includes a general comment/description about the purpose of the interface. And the comments for each method should describe:

what the method does what the parameters are (if any) what the method returns (if anything) what the exceptions are (if any) I recommend running a javadoc tool to test your comments.

In Eclipse, you can right-click on the project name, then select Export, Java, Javadoc Extra Credit (10 points)

Add three additional methods to the BagInterface interface. Make sure the new methods are consistent with the bag ADT. If you add a method that modifies the ADT in a minor way, update that part of the BagInterface to reflect your change. But make sure you keep with the "general idea" of a bag!

Submit only the method headers with full javadoc style documentation (you can submit as a .txt, .doc, .pdf, etc. file type). Do not submit the full interface- only the new methods or any documentation that you have changed.

Submission

Upload either HeadTailListInterface.java or a zip of HeadTailListInterface.java and your extra credit.

If submitting as a group, submit one assignment only through one group member's Canvas account. Put the names of all group members in Canvas comment box on the submission page.

cs111cprojectb's People

Contributors

myang1010 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.