A collection of Java exercises covering fundamentals: variables, conditions, loops, and problem-solving. Completed as part of my Java programming course to build strong foundations.
This repository contains my Java programming exercises completed during my computer science studies. The goal is to master Java fundamentals and develop strong problem-solving skills.
- Master Java syntax and data types
- Understand control structures (if/else, loops)
- Practice algorithmic thinking
- Learn input/output operations
- Apply object-oriented programming concepts
├── tp1/ # Basic I/O, Conditions, Loops
│ ├── PairImpair.java
│ ├── Factorielle.java
│ └── ...
├── tp2/ # Project Organization
├── tp3/ # Git Practice
├── tp4/ # Variables, Operations, Problem Solving
│ ├── StudentInfo.java
│ ├── ShoppingDiscount.java
│ ├── GuessingGame.java
│ └── ...
└── README.md
- Language: Java 21 LTS (OpenJDK)
- IDE: Visual Studio Code
- Version Control: Git & GitHub
- OS: Windows / Ubuntu
- Clone the repository:
git clone https://github.com/YOUR-USERNAME/java-exercises.git
cd java-exercises- Compile and run any exercise:
javac tp1/PairImpair.java
java tp1/PairImpair- ✅ Input/Output with Scanner
- ✅ Conditional statements (if/else, switch)
- ✅ Loops (for, while, do-while)
- ✅ Basic algorithms (factorial, Fibonacci, prime numbers)
- ✅ Variable types and casting
- ✅ Shopping discount calculator
- ✅ Password strength checker
- ✅ Number guessing game
- ✅ Pattern printing
- ✅ Prime number counter
- Problem decomposition
- Algorithm design
- Code documentation
- Debugging techniques
- Clean code practices
| TP | Status | Completion |
|---|---|---|
| TP1 | 🟢 In Progress | 60% |
| TP2 | 🟡 Started | 20% |
| TP3 | 🟢 Completed | 100% |
| TP4 | 🟢 In Progress | 40% |
Your Name
This project is for educational purposes.
Special thanks to my instructor and the Java programming community for their support and resources.
⭐ If you find these exercises helpful, feel free to star this repository!
---
## **Option 3: Simple One-Line Description (for GitHub "About" section)**
When you create the repo, in the "About" section, use:
🎓 Java programming exercises for beginners - Variables, conditions, loops, and algorithms | Educational project
**And add these topics/tags:**
java beginner-friendly programming-exercises algorithms data-structures learning-java computer-science exercises java21 educational