Please tell me how to get the elements of a generic stack without popping a element?
crx-queue-using-stack-dequeueefficientcode
pssharma1410
(Piyush Sharma )
June 6, 2021, 11:20am
#1
The class I’m using is :
Stack stack = new Stack<>();
aa1
(Abha Agrawal)
June 6, 2021, 4:40pm
#2
you can go through this: