Here is a Java implementation of a Stack using Nodes. So you can see how the real functions of a Stack work.

🧵 To push.
🧵 To pop.
🧵 peek.
🧵 To traverse in Stack.
🧵 To get size of stack.
🧵 To check is stack Empty.
🧵 To find center of a stack.
🧵 To reverse stack.
🧵 Iterator to iterate.
You too can Contribute 🧠