🚀 A Collection of Java Programming Exercises for Mastering OOP and Core Concepts
Java Academic Practice Repository is a curated collection of academic exercises, hands-on activities, and lessons in Java, designed to reinforce object-oriented programming (OOP) concepts and enhance problem-solving skills.
Developed as part of coursework, this repository serves as a hands-on learning resource for students to practice and master foundational Java programming techniques.
| 🎯 Core Functionality | 🔧 Technical Features |
|---|---|
| ✅ Comprehensive Exercises: Covers loops, conditionals, data types, and OOP basics | ✅ Clean Code Structure: Modular and well-commented Java code |
| ✅ Hands-On Activities: Practical mini-projects from coursework | ✅ Standard Library Usage: Leverages java.util, java.io, etc. |
| ✅ Foundational Lessons: Lessons 1–5 on syntax, classes, inheritance, and I/O | ✅ Error Handling: Robust exception handling in exercises |
| ✅ Academic Focus: Aligned with classroom learning objectives | ✅ Cross-Platform: Compatible with Windows, macOS, and Linux |
- Exercises: Topic-specific problems on loops, conditionals, data types, and OOP principles (e.g., encapsulation, inheritance).
- Hands-On Activities: Guided mini-projects applying Java concepts to real-world scenarios.
- Java Lessons 1 to 5:
- Lesson 1: Basic syntax and program structure.
- Lesson 2: Classes and objects.
- Lesson 3: Inheritance and polymorphism.
- Lesson 4: Control flow (loops, conditionals).
- Lesson 5: Input/output operations (e.g., file handling, console I/O).
🛠️ Development Environment
|
Java JDK Required for running the exercises |
IntelliJ IDEA Recommended IDE for development |
📁 Required Dependencies
No external libraries are required beyond the Java Standard Library (java.util, java.io, etc.) for most exercises.
git clone https://github.com/icodecedd/java-academics.git
cd java-academics- Ensure Java JDK 11+ is installed. Download from Oracle or use OpenJDK.
- Verify installation:
java -version
- Download and install IntelliJ IDEA Community Edition.
- Open IntelliJ IDEA and select Open to load the repository folder as a project.
- Configure the JDK in IntelliJ:
- Go to
File > Project Structure > Platform Settings > SDKs. - Add your installed JDK if not already configured.
- Go to
- Navigate to subdirectories (e.g.,
exercises/,hands-on_activities/,lessons/lesson1/). - Open a
.javafile in IntelliJ IDEA. - Click the Run button (green triangle) or press
Shift + F10to compile and run. - Each
.javafile includes comments explaining the problem and solution.
We welcome contributions from the community to enhance this educational resource! Here's how you can help:
| 🐛 Bug Reports | 📖 Documentation | 💻 Code Contributions | 🎨 Enhancements |
|---|---|---|---|
| Report issues in exercises | Improve README or code comments | Add new Java exercises | Optimize code solutions |
| Suggest new topics | Create tutorials or guides | Fix bugs in existing code | Add advanced OOP features |
| Test on different JDKs | Enhance exercise descriptions | Implement new activities | Improve readability |
- Fork the repository
- Create a feature branch (
git checkout -b feature-name) - Commit your changes (
git commit -m 'Add new exercise') - Push to your branch (
git push origin feature-name) - Open a Pull Request