Skip to content

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.

Notifications You must be signed in to change notification settings

manal88966/java-practice

Repository files navigation

java-practice

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.

👨‍🎓 About This Repository

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.

🎯 Learning Objectives

  • Master Java syntax and data types
  • Understand control structures (if/else, loops)
  • Practice algorithmic thinking
  • Learn input/output operations
  • Apply object-oriented programming concepts

📂 Repository Structure

├── 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

🛠️ Technologies Used

  • Language: Java 21 LTS (OpenJDK)
  • IDE: Visual Studio Code
  • Version Control: Git & GitHub
  • OS: Windows / Ubuntu

🚀 How to Run

  1. Clone the repository:
git clone https://github.com/YOUR-USERNAME/java-exercises.git
cd java-exercises
  1. Compile and run any exercise:
javac tp1/PairImpair.java
java tp1/PairImpair

📚 Exercise Topics

TP1 - Fundamentals

  • ✅ Input/Output with Scanner
  • ✅ Conditional statements (if/else, switch)
  • ✅ Loops (for, while, do-while)
  • ✅ Basic algorithms (factorial, Fibonacci, prime numbers)

TP4 - Problem Solving

  • ✅ Variable types and casting
  • ✅ Shopping discount calculator
  • ✅ Password strength checker
  • ✅ Number guessing game
  • ✅ Pattern printing
  • ✅ Prime number counter

🎓 Skills Developed

  • Problem decomposition
  • Algorithm design
  • Code documentation
  • Debugging techniques
  • Clean code practices

📈 Progress Tracker

TP Status Completion
TP1 🟢 In Progress 60%
TP2 🟡 Started 20%
TP3 🟢 Completed 100%
TP4 🟢 In Progress 40%

👨‍💻 Author

Your Name

  • 🎓 Computer Science Student
  • 📍 Casablanca, Morocco
  • 🔗 LinkedIn | Email

📝 License

This project is for educational purposes.

🙏 Acknowledgments

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

About

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.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages