Quan Nguyen (Jimmy Youhei) Queue Class

Queue

Introduction

This is my own Queue class that is written by me by using either Array List or Linked List. The purpose is to learn more about Queue

Version:

  • It is written by using IntelliJ IDEA Community Edition 2019.1.3 x64
  • JDK version 11

If you use IntelliJ IDEA use new -> Project From Version Control -> Git and paste https://github.com/JimmyYouhei/QueueJava.git

How to install:

How to use:

  • Using the Main class to run and test any method
  • Then you can use either the LinkedListQueue class or the ArrayListQueue:
    • peek(): look at the object at the first of the queue
    • dequeue() : remove but not return (intended that way) the object at the first of the queue
    • enqueue(Object toBeAdded): push an object to the last of the queue
    • print(): print all the elements

Note:

  • Due to the class is written purely for learning purpose so very little Exception handle is expected

License

MIT License

Leave a Reply

Your email address will not be published. Required fields are marked *