Skip to content

Latest commit

 

History

History

Queues

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Queues

Linked List Instantiation

Queue<String>() mylinkl = new LinkedList<>()

Priority Queue Instantiation of String Type

Queue<String>() mylinkl = new Priority Queue<>()

Priority Queue Instantiation of Integer Type

Queue<Integer>() mylinkl = new Priority Queue<>()
Start Method Output
add [] .add("Hello"); ["Hello"]
element ["Hello"] .element() Hello
peek ["Hello", "Hi"] .peek() Hello
pole ["Hello", "Hi"] .pole() Hello
remove ["Hello", "Hi"] .remove("Hi") ["Hello"]
size [“Hello”, “Hi”] .size() 2