|  | 
| 1 |  | -# ☕ Java-Programs | 
|  | 1 | +# Java Learning Repository | 
| 2 | 2 | 
 | 
| 3 |  | -Hey there! 👋  | 
| 4 |  | -Welcome to my Java learning repo! This repository contains all the Java programs I’m writing while learning the language — from absolute basics to object-oriented programming and more. Whether you're learning with me or just looking for some simple Java examples, you're in the right place. 💻🚀 | 
|  | 3 | +This repository contains Java code examples and exercises for learning core Java concepts, including: | 
| 5 | 4 | 
 | 
| 6 |  | ---- | 
|  | 5 | +- Variables and Data Types | 
|  | 6 | +- Control Statements (if, switch, loops) | 
|  | 7 | +- Methods and Overloading | 
|  | 8 | +- Arrays (1D, 2D, Jagged) | 
|  | 9 | +- Strings and String Methods | 
|  | 10 | +- Object-Oriented Programming (Classes, Objects, Constructors, Inheritance) | 
|  | 11 | +- Packages and Access Modifiers | 
|  | 12 | +- Exception Handling | 
| 7 | 13 | 
 | 
| 8 |  | -## 📁 Folder Structure | 
|  | 14 | +## Folder Structure | 
| 9 | 15 | 
 | 
| 10 |  | -Java-Programs/ | 
| 11 |  | -├── Basic_Programs/ | 
| 12 |  | -│ └── HelloWorld.java, SumTwoNumbers.java, etc. | 
| 13 |  | -├── OOPs_Concepts/ | 
| 14 |  | -│ └── (Coming soon...) | 
| 15 |  | -├── Arrays_And_Strings/ | 
| 16 |  | -│ └── (Coming soon...) | 
| 17 |  | -└── ... | 
|  | 16 | +``` | 
|  | 17 | +Java@Groot/ | 
|  | 18 | +├── 03_Variables/ | 
|  | 19 | +├── 05_ControlStatment/ | 
|  | 20 | +├── 06_Methods/ | 
|  | 21 | +├── 07_ArrayAndString/ | 
|  | 22 | +├── 08_OOPs/ | 
|  | 23 | +├── 10_String/ | 
|  | 24 | +├── 11_OOPs/ | 
|  | 25 | +``` | 
| 18 | 26 | 
 | 
|  | 27 | +## How to Run | 
| 19 | 28 | 
 | 
| 20 |  | ---- | 
|  | 29 | +1. **Compile a Java file:** | 
|  | 30 | + ```sh | 
|  | 31 | + javac path/to/YourFile.java | 
|  | 32 | + ``` | 
| 21 | 33 | 
 | 
| 22 |  | -## ✅ Topics Covered | 
|  | 34 | +2. **Run the compiled class:** | 
|  | 35 | + ```sh | 
|  | 36 | + java path.to.YourFile | 
|  | 37 | + ``` | 
| 23 | 38 | 
 | 
| 24 |  | -- ✅ Basic Syntax & Structure | 
| 25 |  | -- ✅ Variables, Data Types & Operators | 
| 26 |  | -- ✅ Input/Output | 
| 27 |  | -- ✅ Conditional Statements (`if`, `else`, `switch`) | 
| 28 |  | -- ✅ Loops (`for`, `while`, `do-while`) | 
| 29 |  | -- ✅ OOPs Concepts (Classes, Objects, Inheritance, Polymorphism, etc.) | 
| 30 |  | -- 🔜 Arrays & Strings | 
| 31 |  | -- 🔜 Functions & Recursion | 
| 32 |  | -- 🔜 Exception Handling | 
| 33 |  | -- 🔜 File Handling | 
| 34 |  | -- 🔜 Mini Java Projects | 
|  | 39 | +> **Note:** For files using packages, ensure you run the command from the root directory and use the fully qualified class name. | 
| 35 | 40 |  | 
| 36 |  | -> ⚠️ I'm updating the repo as I learn new topics — so keep checking back and don’t forget to ⭐ star the repo if it helps you. | 
|  | 41 | +## Contribution | 
| 37 | 42 | 
 | 
| 38 |  | ---- | 
|  | 43 | +Feel free to fork this repository and submit pull requests for improvements or additional examples. | 
| 39 | 44 | 
 | 
| 40 |  | -##💻 How to Use | 
|  | 45 | +### 📝 License | 
| 41 | 46 | 
 | 
| 42 |  | -1. Clone this repository: | 
| 43 |  | - ```bash | 
| 44 |  | - git clone https://github.com/Piyush64-bit/Java-Programs.git | 
| 45 |  | - cd Java-Programs | 
| 46 |  | -2. Open any .java file in your favorite IDE (VS Code / IntelliJ / Eclipse). | 
|  | 47 | +This project is licensed under the [MIT License](./LICENSE). | 
| 47 | 48 | 
 | 
| 48 |  | -3. Compile & Run in terminal: | 
| 49 |  | - | 
| 50 |  | -javac FileName.java | 
| 51 |  | -java FileName | 
| 52 |  | - | 
| 53 |  | ---- | 
| 54 |  | - | 
| 55 |  | -🎯 Goals of This Repo | 
| 56 |  | - | 
| 57 |  | -📘 Practice and strengthen my Java basics | 
| 58 |  | -🔍 Understand core programming concepts clearly | 
| 59 |  | -💡 Build logic step by step through examples | 
| 60 |  | -⚔️ Prepare for coding interviews & DSA | 
| 61 |  | -🛠️ Eventually build small Java-based projects | 
| 62 |  | - | 
| 63 |  | ---- | 
| 64 |  | - | 
| 65 |  | -🧠 Learning Path | 
| 66 |  | -I'm learning Java as part of my Full Stack Development course at Groot Academy 👨💻 | 
| 67 |  | -Also pursuing B.Tech (CSE) from GIT Jaipur 🏫 | 
| 68 |  | -Started with: | 
| 69 |  | - | 
| 70 |  | -C ✅ | 
| 71 |  | -C++ ✅ | 
| 72 |  | -HTML, CSS ✅ | 
| 73 |  | -Now diving deep into Java 🔥 | 
| 74 |  | - | 
| 75 |  | ---- | 
| 76 |  | - | 
| 77 |  | -📬 Connect With Me | 
| 78 |  | - | 
| 79 |  | -🔗 LinkedIn – @piyush64bit | 
| 80 |  | -💼 Portfolio coming soon... | 
| 81 |  | - | 
| 82 |  | -🤝 Feel free to fork, star ⭐ and open PRs or issues if you have suggestions! | 
| 83 |  | - | 
| 84 |  | ---- | 
| 85 |  | - | 
| 86 |  | -Made with ❤️ by Piyush | Born to Code ⚡ | 
0 commit comments