Class IIntFIFO


  • public class IIntFIFO
    extends Object
    int first in first out queue base on single link
    Author:
    chenxin
    • Constructor Detail

      • IIntFIFO

        public IIntFIFO()
    • Method Detail

      • enQueue

        public boolean enQueue​(int data)
        add a new item to the queue
        Parameters:
        data -
        Returns:
        boolean
      • deQueue

        public int deQueue()
        remove the first item from the queue
        Returns:
        int (It not good to return int)
      • size

        public int size()
        get the size of the queue
        Returns:
        int