Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java DSA

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.

🚀 What’s Included

  • Basics of Java: core syntax, data types, variables, strings, arithmetic, and printing.
  • Conditions: examples for if, if-else, switch, and conditional logic.
  • Loops: for and while loops with practical examples.
  • DSA Concepts: a working foundation for implementing and exploring data structures and algorithms in Java.

📁 Repository Structure

  • 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, and DynamicProgramming implementations.

✅ Learning Goals

  • 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

💡 How to Run

Compile and run Java files from the repository root.

cd "Java Dsa"
javac "Basics Of Java/dtypes.java"
java Basics\ Of\ Java.dtypes

Or run a file from a subfolder:

javac Loops/while_loop.java
java Loops.while_loop

🌱 Recommended Next Steps

  • Add implementations for standard data structures:
    • Stack
    • Queue
    • LinkedList
    • Binary Tree
    • Graph
  • Add algorithm examples for:
    • search and sort
    • recursion
    • dynamic programming
    • graph traversal
  • Clean up generated .class files and add a .gitignore

🙌 Contribution

Contributions are welcome! If you want to add more Java DSA examples, submit a pull request and help grow this learning repository.


📌 About

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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages