π Java Training Hub β A comprehensive repository containing Java exercises covering Basic Syntax, Control Flow, OOP, Data Structures, Algorithms, and Problem Solving.
This repository is designed to build a strong foundational understanding of Java, ensuring a well-rounded grasp of its core concepts. The goal is to develop backend development skills by tackling various challenges that simulate real-world scenarios.
β Basic Syntax & Variables β Java fundamentals, data types, and operators
β Control Flow β Conditional statements, loops (if/else, loops, switch-case)
β Functions & Recursion β Methods, recursion, and modular programming
β Arrays & Data Structures β Arrays, lists, stacks, queues, hashmaps, and sets
β Object-Oriented Programming (OOP) β Encapsulation, inheritance, polymorphism, abstraction
β Algorithms & Problem Solving β Sorting, searching, recursion, and logic-based challenges
- Hello World β Printing the first statement in Java
- Swap Two Numbers β Swapping two variables without a temp variable
- Even or Odd β Checking if a number is even or odd
- Find the Largest Number β Finding the largest among three numbers
- Sum of Digits β Calculating the sum of digits of a number
- Factorial Calculation β Calculating the factorial using loops
- Prime Number Check β Checking if a number is prime
- Reverse a Number β Reversing the digits of a number
- Fibonacci Series β Printing the Fibonacci sequence up to a limit
- Armstrong Number β Checking if a number is an Armstrong number
- Recursion & Dynamic Programming β Solving problems using recursion and memoization
- Data Structures Implementation β Implementing Linked Lists, Trees, and HashMaps
- Multi-threading & Concurrency β Understanding Java's threading model
- File Handling & Streams β Working with files and input/output streams
- Clone the repository:
git clone https://github.com/ehab-elshimi-developer/java-training-hub.git
- Open the project in your preferred IDE (e.g., IntelliJ IDEA or VS Code)
- Run the
MainController
class to execute the solutions
- Adding more advanced exercises
- Structuring solutions into modular packages for better organization
- Implementing Unit Tests to validate solutions
Java
Problem Solving
Backend Development
OOP
Data Structures
Algorithms
Coding Challenges
This repository is for personal learning and practice. However, if you have suggestions or improvements, feel free to open an Issue or Pull Request.