Organized collection of commented examples covering the fundamentals of Java.
This repository is my personal learning journal where I document my progress while studying Java from scratch.
It contains practical examples, commented code, and structured folders organized by topic.
🚧 Work in progress — This repository will continue to grow as I advance through the course.
The goal of this project is to:
- Practice and reinforce Java fundamentals
- Provide clear and simple examples for beginners
- Build a solid foundation before moving into Object-Oriented Programming (OOP)
The final objective is to reach and fully understand OOP concepts in Java.
Each folder represents a specific topic:
- Basic program structure
- First Java programs
- Understanding
mainmethod - Basic syntax
- Primitive data types
- Variable declaration and initialization
- Scope basics
- Basic operations
- String creation and manipulation
- Common String methods
- Basic text operations
- User input using
Scanner - Reading different data types
- Handling console interaction
More modules will be added as I progress.
✔ Java program structure
✔ Variables and primitive data types
✔ Working with Strings
✔ Console input using Scanner
✔ Commented examples for learning purposes
Planned topics to be added:
- Control Flow (if, switch)
- Loops (for, while, do-while)
- Methods
- Arrays
- ArrayLists
- Exception handling
- Object-Oriented Programming (OOP):
- Classes and Objects
- Encapsulation
- Constructors
- Inheritance
- Polymorphism
- Interfaces
Clone the project:
git clone https://github.com/FazeElian/Understanding-Java-Basics.git
cd Understanding-Java-Basics
Compile and run a file from the terminal:
javac FileName.java
java FileNameYou can also open the project in any IDE such as:
- IntelliJ IDEA
- Eclipse
- VS Code
- NetBeans
This repository is mainly for learning purposes, but suggestions are welcome!
You can:
- Improve explanations
- Suggest new examples
- Fix typos
- Open issues for discussion