This repository contains a basic implementation of a Stack using an array in Java. The stack supports typical operations such as push, pop, and print (top to bottom).
push(int data)β Add element to the top of the stackpop()β Remove element from the topisEmpty()β Check if the stack is emptyisFull()β Check if the stack is fullprint()β Display the stack from top to bottom
This project is part of my DSA (Data Structures & Algorithms) learning. It helped strengthen:
- LIFO (Last-In-First-Out) logic
- Manual memory/index management using arrays
- Stack overflow and underflow checks
Stackβ Class with all stack logicMainβ Driver code to test the implementation
- Java
- IDE: IntelliJ IDEA
Noor Fatima
BS Artificial Intelligence Student
GitHub: https://github.com/noor05-creator