The class I’m using is :
Stack stack = new Stack<>();
Please tell me how to get the elements of a generic stack without popping a element?
you can go through this:
The class I’m using is :
Stack stack = new Stack<>();
you can go through this: