Homework Solution: In this lab, you will write an interface for a list that contains different methods than those contained in the ListInterface…

    Java lab, you will write an interface for a list that contains different methods than those contained in the Listlnterface In this class from Chapter 12. With this kind of list, the user can only access the beginning or ending elements of a list, not any elements from the middle of the list. Specify this list in an interface called EntryWayListInterface<T> Note that you are only creating the interface; you are not implementing the methods. Requirements Your interface must: 1. compile (20 points) 2. contain these exact method headers: . boolean insertHead(T newEntry) boolean insertTai .T deleteHead) (returns the object that has been deleted) .T deleteTail (returns the object that has been deleted) l (T newEntry) void display ) int contains (T anEntry) boolean isEmpty) boolean isFull (0 use appropriate javadoc-style comments (80 points) You can review the ListInterface.java file or the resources listed here comments Include comments about the purpose of the interface. Each method should have a javadoc-style comment describing: o what the method does o what the parameters are (if any) o what the method returns (if anything) You should run a javadoc tool to test your comments. (In Eclipse, you can right-click on the project name, then select Export, Java, Javadoc.) (returns the position of the entry that was found) . for examples of javadoc-style · . .
    In this lab, you will write an interface for a list that contains different methods than those contained in the ListInterface class from Chapter 12. With this kind of list, the user can only access the beginning or ending elements of a list, not any elements from the middle of the list. Specify this list in an interface called EntryWayListInterface Note that you are only creating the interface: you are not implementing the methods. Requirements Your interface must: 1. compile 2. contain these exact method headers: boolean insertHead(T newEntry) boolean insertTail(T newEntry) T deleteHead() (returns the object that has been deleted) T deleteTail() (returns the object that has been deleted) void display() int contains (T anEntry) (returns the position of the entry that was found) boolean isEmpty() boolean isFull() use appropriate javadoc-style comments You can review the Listlnterface.java file or the resources listed here for examples of javadoc-style comments Include comments about the purpose of the interface. Each method should have a javadoc-style comment describing: what the method does what the parameters are (if any) what the method returns (if anything) You should run a javadoc tool to test your comments. (In Eclipse, you can right-click on the project name, then select Export. Java, Javadoc.)

    Expert Answer

     
    Hi i have solved the required problem attaching below the code and console output. Code: //EntryWayListInterface.java

    Java

    lab, you achieve transcribe an interface control a roll that comprehends opposed arrangements than those comprehended in the Rolllnterface In this assort from Chapter 12. With this peel of roll, the truthr can singly appropinquation the inauguration or bound parts of a roll, referable attributable attributable attributable any parts from the average of the roll. Specify this roll in an interface denominated MinuteWayListInterface<T> Referable attributable attributablee that you are singly creating the interface; you are referable attributable attributable attributable implementing the arrangements. Requirements Your interface must: 1. calm (20 points) 2. comprehend these fit arrangement summiters: . boolean suggestHead(T newEntry) boolean suggestTai .T deleteHead) (avail the end that has been deleted) .T deleteBulk (avail the end that has been deleted) l (T newEntry) bereft flaunt ) int comprehends (T anEntry) boolean isEmpty) boolean isBountiful (0 truth mismiswithhold javadoc-style interprets (80 points) You can revisal the RollInterface.java rasp or the media rolled here interprets Include interprets encircling the end of the interface. Each arrangement should possess a javadoc-style interpret describing: o what the arrangement does o what the parameters are (if any) o what the arrangement avail (if anything) You should escape a javadoc hireling to standard your interprets. (In Darken, you can right-click on the contrivance spectry, then chosen Export, Java, Javadoc.) (avail the standing of the minute that was root) . control examples of javadoc-style · . .

    In this lab, you achieve transcribe an interface control a roll that comprehends opposed arrangements than those comprehended in the RollInterface assort from Chapter 12. With this peel of roll, the truthr can singly appropinquation the inauguration or bound parts of a roll, referable attributable attributable attributable any parts from the average of the roll. Specify this roll in an interface denominated MinuteWayListInterface Referable attributable attributablee that you are singly creating the interface: you are referable attributable attributable attributable implementing the arrangements. Requirements Your interface must: 1. calm 2. comprehend these fit arrangement summiters: boolean suggestHead(T newEntry) boolean suggestTail(T newEntry) T deleteHead() (avail the end that has been deleted) T deleteTail() (avail the end that has been deleted) bereft flaunt() int comprehends (T anEntry) (avail the standing of the minute that was root) boolean isEmpty() boolean isFull() truth mismiswithhold javadoc-style interprets You can revisal the Rolllnterface.java rasp or the media rolled here control examples of javadoc-style interprets Include interprets encircling the end of the interface. Each arrangement should possess a javadoc-style interpret describing: what the arrangement does what the parameters are (if any) what the arrangement avail (if anything) You should escape a javadoc hireling to standard your interprets. (In Darken, you can right-click on the contrivance spectry, then chosen Export. Java, Javadoc.)

    Expert Response

     

    Hi i possess solved the required collection attaching adown the charge and soothe output.

    Code:

    //EntryWayListInterface.java

    /**

    * <h1>Interface MinuteWayListInterface</h1>

    * this is a roll established interface and possess integral the

    * required contemplative arrangements to produce-an-effect in rolls.

    * truthd control suggest grounds at bulk and summit

    * and appropinquation grounds besides from bulk and summit singly

    * @author YourName

    *

    * @param <T> idea of grounds

    */

    public interface MinuteWayListInterface<T> {

    /**

    * truth this arrangement to suggest grounds at summit to

    * the roll

    * @param newEntry

    * @return gentleman if grounds suggested successfully else false

    */

    boolean suggestHead(T newEntry);

    /**

    * truth this arrangement to suggest grounds at bulk to

    * the roll

    * @param newEntry

    * @return gentleman if grounds suggested successfully else false

    */

    boolean suggestTail(T newEntry);

    /**

    * truth this arrangement to delete grounds from summit to

    * the roll

    * @return gentleman if grounds deleted successfully else false

    */

    T deleteHead();

    /**

    * truth this arrangement to delete grounds from bulk to

    * the roll

    * @return gentleman if grounds deleted successfully else false

    */

    T deleteTail();

    /**

    * truth this arrangement to flaunt the contents

    * of the roll

    */

    bereft flaunt();

    /**

    * truth this arrangement to impede if minute exists

    * in the roll

    * @param anEntry

    * @return the index of minute

    */

    int comprehends(T anEntry);

    /**

    * truth this arrangement to impede if roll is

    * vacuity or referable attributable attributable attributable or impede if roll comprehends any minute

    * @return gentleman if no any grounds in roll else false

    */

    boolean isEmpty();

    /**

    * truth this arrangement to impede if roll is bountiful

    * bountiful media no proximate part can be suggested

    * to the roll already empty max proviso to suggest

    * @return gentleman if roll is bountiful else false

    */

    boolean isFull();

    }

    there is other controlm to besides engender javadoc , here engenderd using darken and charge

    control generating the javadoc by using darken counsel already ardent here the mitigatesshot :

    by using the javadoc charge with java rasp spectry besides javadoc can be engenderd

    charge : javadoc MinuteWayListInterface.java

    Soothe OUTPUT:

    in aloft mitigate shot can beware that chief i possess complie the charge and proximate engenderd java doc interpret control that.

    html rasps obtain engenderd control that :