5 Mini Java Projects
Inspired by Indian Movies & TV Shows
1. Pushpa's Red Sandalwood Inventory
Objective:
Create a Java application that manages Pushpa's red sandalwood inventory.
The program should allow users to:
● Add new sandalwood logs with unique IDs
● Remove logs when sold
● Display the current inventory with total value
Features:
● Use a HashMap<String, Integer> to store log IDs and their
values
● Implement methods to add, remove, and display logs
● Calculate the total value of the inventory
Sample Input/Output:
Enter command: ADD log123 500
Enter command: REMOVE log123
Enter command: DISPLAY
Current Inventory: {}
Total Value: 0
Learning Outcomes:
● Understanding of HashMap for storing key-value pairs
● Practice with basic CRUD operations in Java
2. Taarak Mehta's Society Maintenance System
Objective:
Develop a system to manage the maintenance requests of Gada Electronics'
society. The program should:
● Accept maintenance requests with descriptions
● Assign requests to available workers
● Mark requests as completed
Features:
● Use a Queue<String> to handle incoming requests
● Implement a Worker class with methods to assign and complete tasks
● Display the status of all requests
Sample Input/Output:
Enter request: Fix elevator
Assigning worker: Jethalal
Request 'Fix elevator' completed by Jethalal
Learning Outcomes:
● Familiarity with Queue for task management
● Basic class design and object-oriented principles
3. Dhoom: Bike Race Score Tracker
Objective:
Create a Java application to track the scores of racers in a bike race. The
program should:
● Accept racer names and their scores
● Sort racers based on their scores
● Display the top 3 racers
Features:
● Use an ArrayList<String> to store racer names
● Implement a sorting algorithm to rank racers
● Display the top 3 racers with their scores
Sample Input/Output:
Enter racer: Jai 95
Enter racer: Ali 85
Enter racer: Aryan 90
Top 3 Racers:
1. Jai - 95
2. Aryan - 90
3. Ali - 85
Learning Outcomes:
● Sorting and ranking using Java collections
● Handling user input and output effectively
4. Avengers: Team Member Manager
Objective:
Develop a system to manage the Avengers team members. The program
should:
● Add new members with their roles
● Remove members when they retire
● Display the current team roster
Features:
● Use a HashSet<String> to store unique member names
● Implement methods to add, remove, and display members
● Ensure no duplicate members are added
Sample Input/Output:
Enter command: ADD IronMan
Enter command: REMOVE IronMan
Current Team: []
Learning Outcomes:
● Understanding of HashSet for unique collections
● Basic set operations in Java
5. Pushpa's Dialogue Formatter
Objective:
Create a program that formats Pushpa's dialogues. The program should:
● Accept a name as input
● Format the dialogue as: "Pushpa, <name> toh suna hi hoga?"
Features:
● Use string concatenation to format the dialogue
● Handle user input and output
Sample Input/Output:
Enter name: Ravi
Pushpa, Ravi toh suna hi hoga?
Learning Outcomes:
● String manipulation in Java
● Handling user input and output efficiently
Designed as a learning resource for Java programmers | Print this page
(Ctrl+P) to save as PDF