Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

LinkedQueue Generic Class Convert LinkedQueue into a generic class that can store objects of any type.

So I have a question about linkqueue convert to generic class(see attachment), below it what I have right now. Thank you very much!

-----------------------------------------------------------------------------

LinkedQueue.java

public class LinkedQueue

{

  private class Node

  {

    String value;

    Node next;

    Node(String val, Node n)

    {

      value = val; 

      next = n;

    }    

  }

  private Node front = null; 

  private Node rear = null;                   

  /**

    The method enqueue adds a value

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question