Skip to content

Latest commit

 

History

History
10 lines (10 loc) · 463 Bytes

File metadata and controls

10 lines (10 loc) · 463 Bytes

Queue

This Queue Project contains different methods such as the

  • public void add(int x) // Add a number
  • public int peek() // Returns the first element
  • public void remove() // Removes the first element
  • public void poll() // remove()
  • public boolean isEmpty() // Returns if empty or not
  • public int getSize() // Returns the size of the Queue
  • public void print() // Returns the added data
  • public int[] horizontalSearch() // Returns Max-Queue Element