Welcome to my Java Programs Repository! This repository contains a comprehensive collection of basic Java programs alongside Data Structures and Algorithms (DSA) implementations. It's designed to help beginners learn Java fundamentals and explore advanced concepts like DSA through practical examples.
- Control structures (if-else, loops, switch-case)
- Functions and recursion
- Object-Oriented Programming (OOP) concepts
- Exception handling
- File handling
- Arrays and Strings
- Linked Lists (Singly, Doubly, and Circular)
- Stacks and Queues
- Trees (Binary Trees, BSTs, and more)
- Graphs (DFS, BFS)
- Sorting algorithms (Bubble, Merge, Quick, etc.)
- Searching algorithms (Linear, Binary Search)
- Dynamic programming (Knapsack, Longest Common Subsequence)
- Greedy algorithms (Prim’s, Kruskal’s)
- Backtracking (N-Queens, Sudoku Solver)
- Language: Java
- IDE: IntelliJ IDEA / Eclipse / VS Code
- Clone the repository:
git clone https://github.com/AbdurRahim/java-programs-dsa.git
- Open the project in your preferred Java IDE.
- Navigate to the program file you wish to execute.
- Compile and run the program using the IDE or command line:
javac ProgramName.java java ProgramName
/
|-- BasicJavaPrograms/ # Contains all basic Java programs
|-- DSA/ # Data Structures and Algorithms programs
| |-- Sorting/ # Sorting algorithms
| |-- Searching/ # Searching algorithms
| |-- Trees/ # Tree implementations
|-- README.md # This file
This repository is a one-stop solution for anyone looking to strengthen their Java programming skills while mastering Data Structures and Algorithms. It's perfect for beginners, students, and anyone preparing for technical interviews.
Contributions are welcome! Feel free to add new programs, optimize existing ones, or improve the documentation. Let’s learn and grow together!
Let me know if you need further customizations! 😊