Skip to content

davidpraise45/Queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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