読者です 読者をやめる 読者になる 読者になる

Implementation of Queue with LinkedList in Java

Implement Queue with LinkedList

I defined a Queue class with the following two property, first and last.

  • first: first it the position to dequeue at next time
  • last: last.next is the position to enqueue at next time