Skip to content

ErkanSoftwareDeveloper/java-basics

Repository files navigation

Java Basics

Welcome to your Java learning journey! 🚀


About

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.

Topics Covered

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.

How to Use

  1. Clone the repository to your local machine:
    git clone https://github.com/ErkanSoftwareDeveloper/java-basics.git
  2. Navigate into the project folder:
    cd java-basics
  3. Choose a topic and move into its directory (e.g., cd 1-hello-world).
  4. Compile and run the Java files:
    javac Main.java   # Compile the code
    java Main         # Run the compiled program
    (Make sure you have the Java Development Kit (JDK) installed.)

Contributing

Found a bug? Want to improve an example? Contributions are always welcome!

License

This project is open source. No strict license feel free to use it for learning.

About

A complete course for learning Java. Enjoy your journey!

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages