Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e277b9d

Browse files
added license and updated readme
1 parent 8a2b14e commit e277b9d

File tree

2 files changed

+56
-73
lines changed

2 files changed

+56
-73
lines changed

‎LICENSE‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Piyush64-bit
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

‎README.md‎

Lines changed: 35 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,48 @@
1-
# Java-Programs
1+
# Java Learning Repository
22

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:
54

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
713

8-
## 📁 Folder Structure
14+
## Folder Structure
915

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+
```
1826

27+
## How to Run
1928

20-
---
29+
1. **Compile a Java file:**
30+
```sh
31+
javac path/to/YourFile.java
32+
```
2133

22-
## ✅ Topics Covered
34+
2. **Run the compiled class:**
35+
```sh
36+
java path.to.YourFile
37+
```
2338

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.
3540
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
3742

38-
---
43+
Feel free to fork this repository and submit pull requests for improvements or additional examples.
3944

40-
##💻 How to Use
45+
### 📝 License
4146

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).
4748

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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /