Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions QueueLink.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// A linked list (LL) node to store a queue entry
class QNode
{
int key;
QNode next;
int key = 0;
QNode next = null;

// constructor to create a new linked list node
public QNode(int key) {
Expand Down Expand Up @@ -78,4 +78,4 @@ public static void main(String[] args)

System.out.println("Dequeued item is "+ q.dequeue().key);
}
}
}