Welcome to the Week 4 Java Mini Projects Repository! This week focused on solidifying core concepts in Linked Lists, revising Object-Oriented Programming (OOP), and practicing with Java Collections Framework. Below are the three mini projects built and explained with usage and structure.
This project demonstrates the implementation of a singly linked list in Java, with methods to:
- Add elements to the beginning or end
- Delete from the beginning or end
- Reverse the list using iteration
- Print the list
- Class & Object
- Pointers and Node chaining
- Iteration for reversal
javac LinkedListManager.java
java LinkedListManagerA simple system to manage student records using the OOP principles like:
- Encapsulation
- Constructor initialization
- Object arrays
- Create student objects
- Display student details using methods
javac StudentSystem.java
java StudentSystemReads a string from user input and counts frequency of each word using Java HashMap.
- HashMap
- String manipulation
- Scanner and loops
javac WordFrequencyCounter.java
java WordFrequencyCounterInput: This is Java and Java is fun
Output:
This: 1
is: 2
Java: 2
and: 1
fun: 1
Week4_Java_Projects/
├── LinkedListManager.java
├── StudentSystem.java
├── WordFrequencyCounter.java
└── README.md
- All programs are console-based and beginner-friendly.
- Each file includes comments for clarity.
- You can expand these projects further as you grow.
You can upload this folder to GitHub to showcase your work and maintain progress documentation.