Skip to content

“A simple and clean repository where I learn Java and DSA from scratch with easy-to-understand examples.”

Notifications You must be signed in to change notification settings

debug-node/Java-from-scratch-with-DSA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java From Scratch With DSA

Hands-on Java and DSA practice through small, single-topic programs.


🔍 What You'll Learn

  • Syntax and operators
  • Control flow (if/else, loops)
  • Methods and parameter passing
  • OOP essentials (classes, objects, inheritance, interfaces, abstract classes)
  • Collections basics (arrays, ArrayList, Vector, Stack)
  • Exception handling and basic I/O
  • Recursion and pattern-printing exercises

💻 Technologies & Tools

  • Java (JDK)
  • Any IDE or text editor (e.g. IntelliJ IDEA, Eclipse, VS Code)
  • Command line / Terminal

🚀 Getting Started

  1. Clone the repository:

    git clone https://github.com/debug-node/Java-from-scratch.git
  2. Navigate into the project folder:

    cd Java-from-scratch
  3. Compile and run Java files. For example:

    javac Main.java
    java Main
  4. To run any default-package file (swap path/class):

    cd folder/with/file
    javac File.java
    java File

    Or from repo root into a shared output folder:

    javac -d out folder/with/file/File.java
    java -cp out File

📁 Project Structure (current + future)

Java-from-scratch/
 ├─ arrays/
 │   ├─ array/
 │   └─ arraylist/
 ├─ basic/
 │   ├─ Operator/
 │   ├─ condition/
 │   ├─ loops/
 │   ├─ function/
 │   └─ simple/
 ├─ patterns/
 ├─ recursion/
 ├─ string/
 ├─ exception/
 ├─ OOPs/
 │   ├─ Abstractclass/
 │   ├─ CaloriesCalculator/
 │   ├─ grades/
 │   ├─ Inheritance/
 │   └─ interfaceclass/
 ├─ Assignment/
 ├─ mypack/
 └─ (add topics as needed: graphs/, streams/, concurrency/, jdbc/, collections-advanced/, algorithms/, ds/, tests/, scripts/)

Tip: View the live tree anytime (Windows):

tree /A /F

✅ How to Contribute / Use It

  • Try writing small Java programs using concepts learned

  • Feel free to add your own examples or exercises

  • If you find bugs or improvements, submit pull requests

  • Optional: add helper scripts in scripts/ (e.g., compile/run by filename) to keep topic folders clean


Badges

  • JDK 17+
  • PRs welcome

🧑‍💻 Author

  • debug-node

About

“A simple and clean repository where I learn Java and DSA from scratch with easy-to-understand examples.”

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published