Welcome to your Java learning journey! 🚀
This repository provides a clean, simple, and beginner-friendly path to master Java programming from scratch. Follow the steps, run the code, and build a solid foundation.
The course is organized into progressive modules. Click on any topic to explore the code:
| Module | Description |
|---|---|
| 1. Hello World | Your first Java program. Set up and run your code. |
| 2. Variables & Data Types | Learn how to store information (primitives, strings, and more). |
| 3. Operators | Perform calculations and comparisons with arithmetic, logical, and assignment operators. |
| 4. Conditions | Make decisions in your code with if, else if, and else. |
| 5. Loops | Repeat tasks efficiently with for, while, and do-while loops. |
| 6. Methods | Write reusable blocks of code and understand method parameters/return types. |
| 7. Classes & Objects | Dive into Object-Oriented Programming (OOP) – the heart of Java. |
| 8. Collections | Work with powerful data structures like ArrayList, HashMap, and more. |
| 9. Exceptions | Handle errors gracefully with try-catch-finally to build robust applications. |
- Clone the repository to your local machine:
git clone https://github.com/ErkanSoftwareDeveloper/java-basics.git
- Navigate into the project folder:
cd java-basics - Choose a topic and move into its directory (e.g.,
cd 1-hello-world). - Compile and run the Java files:
(Make sure you have the Java Development Kit (JDK) installed.)
javac Main.java # Compile the code java Main # Run the compiled program
Found a bug? Want to improve an example? Contributions are always welcome!
This project is open source. No strict license feel free to use it for learning.