A learning repository for Java Data Structures and Algorithms (DSA). This repo contains beginner-friendly Java examples for core concepts like arrays, loops, conditionals, and foundational data structures such as stacks, queues, linked lists, graphs, and dynamic programming.
- Basics of Java: core syntax, data types, variables, strings, arithmetic, and printing.
- Conditions: examples for
if,if-else,switch, and conditional logic. - Loops:
forandwhileloops with practical examples. - DSA Concepts: a working foundation for implementing and exploring data structures and algorithms in Java.
Basics Of Java/- Java fundamentals and simple program examples.Conditions/- Conditional statements and decision-making examples.Loops/- Looping constructs and iteration examples.
Future additions should include dedicated folders for
Queue,Stack,Array,LinkedList,Graph, andDynamicProgrammingimplementations.
- Strengthen Java syntax and basic program structure
- Practice control flow with conditions and loops
- Build confidence through simple, hands-on examples
- Prepare for deeper DSA topics like arrays, stacks, queues, linked lists, graphs, and DP
Compile and run Java files from the repository root.
cd "Java Dsa"
javac "Basics Of Java/dtypes.java"
java Basics\ Of\ Java.dtypesOr run a file from a subfolder:
javac Loops/while_loop.java
java Loops.while_loop- Add implementations for standard data structures:
StackQueueLinkedListBinary TreeGraph
- Add algorithm examples for:
- search and sort
- recursion
- dynamic programming
- graph traversal
- Clean up generated
.classfiles and add a.gitignore
Contributions are welcome! If you want to add more Java DSA examples, submit a pull request and help grow this learning repository.
This repo is a personal Java DSA practice space focused on building understanding through code examples and incremental learning. The goal is to keep the content simple, readable, and easy to expand over time.