-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQueue.java
More file actions
17 lines (14 loc) · 794 Bytes
/
Queue.java
File metadata and controls
17 lines (14 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
public interface Queue // Constants & Methods common to queue ADTs
{
// Default maximum queue size
public final int defMaxQueueSize = 10;
// Queue manipulation operations
public void enqueue ( Object newElement ); // Enqueue element at rear
public Object dequeue ( ); // Dequeue element from front
public void clear ( ); // Remove all elements from queue
// Queue status operations
public boolean isEmpty ( ); // Is Queue empty?
public boolean isFull ( ); // Is Queue full?
public void showStructure ( ); // Outputs the elements in the stack
// For testing/debugging purposes only
} // interface Queue