hi,
I have doubt in understanding the Queue program in "Data Structure and Algorithms Made Easy in
Java " by Narasimha Karumanchi on page 135. I have run the program and enqueued 3 numbers and I called deque more than 5 times and every time its dequeing and giving me the numbers already dequeued. Also it does not delete the numbers after dequeing.I have made few changes in the deQueue method by using class Integer instead if int. Please help. Please find the program below
Thanks.