Learning Resources
Projects
A curated set of Java project ideas from beginner to capstone. Each idea lists the features to implement, a realistic time estimate, and the exact concepts required — every concept linked to its lesson.
Java Projects — Ideas & Concepts Required
26 project ideas from your first console program to portfolio-grade OOP, collections, and concurrency work. Each idea has a brief, features to implement, the exact Java concepts it exercises (linked to lessons), and a time estimate — plus a build guide with suggested classes, step-by-step milestones, a sample run, stretch goals, and the question an interviewer is likely to ask about it.
Which Project Should I Build?
| If your goal is… | Start with |
|---|---|
| Your first program after loops | Number Guessing Game or ATM Simulator |
| Practise arrays and methods | Student Marks Analyser |
| Learn file handling | Expense Tracker or Contact Book |
| Show OOP in interviews | Bank Account Hierarchy or Employee Payroll |
| Prepare for low-level design rounds | Parking Lot System and Library Management |
| Show Collections mastery | Word Frequency or Inventory Management |
| Show concurrency | Task Queue + Worker or Concurrent Download Simulator |
| One portfolio showpiece | Personal Finance Manager or Hotel Room Booking |
Build at least one project from each tier. For placements, two solid projects — one OOP-heavy, one Collections- or concurrency-heavy — with clean READMEs are worth more than ten half-finished ones.
Beginner Projects
Console programs that need I/O, decisions, loops, arrays/strings, and methods. Finish one in a sitting and put it on your resume early.
Menu-Driven Calculator 4–6 hrs
A looping calculator with arithmetic, power, and percentage — practice clean menus and Scanner validation in Java.
Features to implement
- Numbered menu that repeats until quit
- Divide-by-zero and bad-input handling
- Optional history of last N results
Concepts required
Build guide — classes, steps & sample run
Suggested classes
Calculator— Static methods: add, subtract, multiply, divide, power, percentHistory— Keeps the last N results in an array (circular buffer)CalculatorApp— main loop — shows the menu, reads input, prints results
Build it step by step
- Print the menu and read a choice inside a do-while loop.
- Write one method per operation and call it from a switch.
- Validate numbers with hasNextDouble() and reject division by zero.
- Add the history array and a Show history option.
- Format every result with printf to two decimal places.
Sample run
1 Add 2 Subtract 3 Multiply 4 Divide 5 Power 0 Exit
Choice: 4
First number: 10
Second number: 0
Error: cannot divide by zero
Choice: 5
First number: 2
Second number: 10
Result: 1024.00 Stretch goals
- Parse a full expression such as 12 + 7 * 2
- Add square root and modulus
- Save history to a file on exit
Interview angle: Explain how invalid input is handled without crashing — hasNextDouble() plus a retry loop.
Number Guessing Game 3–4 hrs
Computer picks a secret number; player guesses with higher/lower hints and a score by attempts.
Features to implement
- Random number generation
- Difficulty levels
- Play-again loop
Concepts required
Build guide — classes, steps & sample run
Suggested classes
GuessingGame— Secret number, attempts, and the check(guess) logicGameApp— Difficulty menu, play-again loop, best score
Build it step by step
- Generate the secret with random.nextInt(range) + 1.
- Loop: read a guess, print Too high / Too low, count attempts.
- Stop when the guess is right or attempts run out.
- Add Easy (1–50), Medium (1–100), and Hard (1–500) levels.
- Track the best score across rounds.
Sample run
Level (1 Easy, 2 Medium, 3 Hard): 2
Guess (1-100): 50
Too high!
Guess (1-100): 25
Too low!
Guess (1-100): 37
Correct! You took 3 attempts. Best: 3
Play again? (y/n): n Stretch goals
- Warmer / colder hints based on distance
- Save the high score to a file
- Reverse mode: the computer guesses your number with binary search
Interview angle: Why binary search needs at most 7 guesses for 1–100 (log₂100 ≈ 6.6).
Pattern Printing Studio 3–5 hrs
Prints pyramids, diamonds, and number patterns of user-chosen size with a tidy menu.
Features to implement
- At least eight patterns
- User-controlled size
- Methods per pattern
Concepts required
Build guide — classes, steps & sample run
Suggested classes
Patterns— One static method per pattern, each taking a size nPatternApp— Menu, size input, and dispatch to the right method
Build it step by step
- Start with a right triangle of stars using two nested loops.
- Add the pyramid: a spaces loop and a stars loop per row.
- Build the diamond from an upper and a lower pyramid.
- Add number patterns such as Floyd and Pascal triangles.
- Wire everything into a menu with size validation.
Sample run
Pattern (1 Triangle, 2 Pyramid, 3 Diamond): 2
Size: 4
*
***
*****
******* Stretch goals
- Hollow versions of each shape
- Let the user choose the character
- Write the pattern to a text file
Interview angle: Describe how the row number decides the count of spaces and stars in each line.
Unit Converter 3–5 hrs
Converts temperature, length, and currency categories with formatted output.
Features to implement
- Category menu
- Two-way conversion
- printf decimal formatting
Concepts required
Build guide — classes, steps & sample run
Suggested classes
Converter— Static conversion methods per categoryConverterApp— Category menu, from / to units, formatted output
Build it step by step
- Pick three categories: temperature, length, and weight.
- Convert through a base unit (metre, kilogram) so you avoid n × n formulas.
- Read the value and units, and validate them.
- Print results with printf("%.3f").
- Add a reverse-conversion shortcut.
Sample run
Category (1 Temperature, 2 Length, 3 Weight): 1
From (C/F/K): C
To (C/F/K): F
Value: 37
37.000 C = 98.600 F Stretch goals
- Store conversion factors in an enum
- Load currency rates from a file
- Convert a whole list of values at once
Interview angle: Why converting through a base unit keeps the code short and easy to extend.
Student Marks Analyser 5–7 hrs
Read marks for a class into an array, compute average/topper, and print a grade sheet.
Features to implement
- Input validation
- Average and rank list
- Pass/fail summary
Concepts required
Build guide — classes, steps & sample run
Suggested classes
MarksAnalyser— average, highest, lowest, grade(mark), rank listMarksApp— Reads the class and prints the report
Build it step by step
- Read the student count, then fill names[] and marks[].
- Compute total, average, highest, and lowest in one loop.
- Assign grades with an else-if ladder.
- Sort an index array by marks to build the rank list.
- Print a neat table with printf.
Sample run
Name Marks Grade
Asha 92 A
Ravi 78 B
Kiran 55 D
Average: 75.00 Topper: Asha Passed: 3/3 Stretch goals
- Five subjects per student in a 2D array
- Read the class from a CSV file
- Grade histogram drawn with stars
Interview angle: How names and marks stayed aligned while sorting — an index array, or a small Student class.
ATM Simulator 4–6 hrs
PIN login, balance enquiry, deposit, withdrawal, and a mini statement in a looping console menu.
Features to implement
- Three PIN attempts, then the card is blocked
- Withdrawals in multiples of 100 with a balance check
- Mini statement of the last five transactions
Concepts required
Build guide — classes, steps & sample run
Suggested classes
Atm— balance, pin, failed attempts, last five transactions arrayAtmApp— Login, menu loop, and exit
Build it step by step
- Ask for the PIN; block the card after three wrong tries.
- Show a menu: balance, deposit, withdraw, mini statement, exit.
- Allow withdrawals only in multiples of 100 and within the balance.
- Record each transaction in a fixed-size array, overwriting the oldest.
- Add a change-PIN option with confirmation.
Sample run
Enter PIN: ****
1 Balance 2 Deposit 3 Withdraw 4 Mini statement 0 Exit
Choice: 3
Amount: 2550
Amount must be a multiple of 100
Amount: 2500
Please collect your cash. Balance: 7,500.00 Stretch goals
- Several accounts selected by card number
- Daily withdrawal limit
- Note dispensing: count of 500, 200, and 100 notes
Interview angle: How the transaction array keeps only the last five entries (circular index with %).
Intermediate Projects
Projects that combine strings, wrappers, files, packages, and clearer modular design — still mostly console, but they feel like real tools.
Text Analyser 6–8 hrs
Analyse a paragraph or file for word count, unique words, and frequency — a warm-up for HashMap later.
Features to implement
- Word and sentence counts
- Frequency table
- Case-insensitive option
Concepts required
Build guide — classes, steps & sample run
Suggested classes
TextStats— Counts words, sentences, characters, and vowelsFrequencyCounter— Word → count table (parallel arrays now, HashMap later)AnalyserApp— Reads text from the keyboard or a file and prints the report
Build it step by step
- Read the text with Scanner or Files.readString.
- Lower-case it, remove punctuation with replaceAll, and split on whitespace.
- Count sentences by the . ! ? characters.
- Count word frequencies and print the top five.
- Report the longest word and average word length.
Sample run
Words: 128 Sentences: 9 Characters: 712
Top words: the(11) java(7) is(6) a(5) code(4)
Longest word: encapsulation Average length: 4.6 Stretch goals
- Ignore stop words such as the, a, is
- Estimated reading time
- Common words between two files
Interview angle: How words were normalised (case and punctuation) so Java and java count as one word.
Quiz Application 7–9 hrs
Multiple-choice quiz with a question bank, live scoring, and a review screen.
Features to implement
- Array/file-based question bank
- Score tracking
- Optional file-loaded questions
Concepts required
Build guide — classes, steps & sample run
Suggested classes
Question— Text, four options, correct indexQuestionLoader— Reads questions from a text fileQuizEngine— Shuffles, asks, scores, and remembers wrong answersQuizApp— Menu and result screen
Build it step by step
- Create the Question class and hard-code five questions.
- Loop through them, read A–D, and keep the score.
- Show a review of wrong answers with the correct option.
- Load questions from a file instead of code.
- Shuffle the order and add a time limit per quiz.
Sample run
Q3. Which keyword prevents a method from being overridden?
A) static B) final C) private D) const
Your answer: B
Correct! Score: 3/3 Stretch goals
- Categories and difficulty levels
- High-score file with player names
- Negative marking
Interview angle: Why question data (Question) is separated from quiz logic (QuizEngine).
Tic-Tac-Toe (Two Player) 6–8 hrs
Console board game with win/draw detection and invalid-move handling.
Features to implement
- 3×3 board rendering
- Win and draw detection
- Replay option
Concepts required
Build guide — classes, steps & sample run
Suggested classes
Board— char[3][3] grid; place(), isFull(), print()WinChecker— Checks rows, columns, and both diagonalsGame— Turn loop, player switching, replay, score
Build it step by step
- Print an empty 3×3 board with row and column numbers.
- Read a move; reject out-of-range or occupied cells.
- Check for a win after each move with loops, not eight if statements.
- Declare a draw when the board is full.
- Track scores across rounds.
Sample run
X | O | X
---+---+---
| X | O
---+---+---
| | X
Player X wins! Score X: 1 O: 0 Stretch goals
- Single-player mode: win, else block, else random
- N×N board with K in a row
- Unbeatable AI with minimax recursion
Interview angle: How win detection uses loops over rows and columns plus two diagonal checks.
Contact Book (File-Backed) 8–12 hrs
Add/search/list contacts stored in a text or CSV file, organised in a small package.
Features to implement
- CRUD-lite operations
- Search by name
- Persist between runs
Concepts required
Build guide — classes, steps & sample run
Suggested classes
Contact— name, phone, email with validationContactRepository— Loads and saves contacts.csvContactService— Add, search, update, deleteContactApp— Menu (package com.contacts.app)
Build it step by step
- Create packages: model, repo, service, app.
- Implement add and list in memory first.
- Save to CSV after every change and load on start.
- Search by partial, case-insensitive name.
- Validate the phone (10 digits) and email (contains @ and a dot).
Sample run
1 Add 2 List 3 Search 4 Delete 0 Exit
Choice: 3
Name contains: ra
Ravi Kumar 9876543210 ravi@mail.com
Rashmi Rao 9123456780 rashmi@mail.com Stretch goals
- Reject duplicate phone numbers
- Sort by name
- Export to vCard format
Interview angle: How file reading and writing stays separate from the menu code (repository layer).
Expense Tracker (CLI) 8–10 hrs
Log daily expenses with categories and show totals by category from a file.
Features to implement
- Append-only log
- Category totals
- Simple date string handling
Concepts required
Build guide — classes, steps & sample run
Suggested classes
Expense— date, category, amount, noteExpenseLog— Appends to and reads expenses.csvReport— Totals by category and by monthTrackerApp— Menu
Build it step by step
- Fix the CSV format: date,category,amount,note.
- Append one line per expense with new FileWriter(file, true).
- Read all lines and parse amounts with Double.parseDouble.
- Print totals per category.
- Filter by month using the yyyy-MM prefix of the date.
Sample run
Category Total
Food 2,450.00
Travel 1,200.00
Bills 3,800.00
2026-10 total: 7,450.00 Stretch goals
- Monthly budget with an over-budget warning
- Use LocalDate for real date handling
- Bar chart drawn with # characters
Interview angle: How a corrupt CSV line is skipped and reported instead of crashing the program.
Advanced Projects
Design with classes, collections, files, and threads. These look strong on a resume and match typical campus / junior interviews.
Student Record OOP System 10–15 hrs
Manage student objects with encapsulated fields, file persistence, and search/sort helpers.
Features to implement
- Class with private data + getters/setters
- Add / display / search / update
- Save and load from file
Concepts required
Build guide — classes, steps & sample run
Suggested classes
Student— private id, name, marks; validated setters; toStringStudentRepository— ArrayList<Student> plus save / load to a fileStudentService— add, findById, update, delete, sortStudentApp— Menu
Build it step by step
- Write Student with a constructor, getters, setters, and toString.
- Store students in an ArrayList and list them.
- Add search by id and update marks.
- Sort by name or marks with a Comparator.
- Save to a file and reload on start.
Sample run
ID Name Marks
1 Asha 92.0
2 Ravi 78.5
Sorted by marks (desc): Asha, Ravi Stretch goals
- HashMap<Integer, Student> for O(1) lookup by id
- Custom StudentNotFoundException
- Report card file per student
Interview angle: Why fields are private and how setters reject invalid marks.
Bank Account Hierarchy 12–18 hrs
Base Account with Savings/Current derived types — deposits, withdrawals, and polymorphic statements.
Features to implement
- Inheritance hierarchy
- Overridden interest or display
- Transaction history list
Concepts required
Build guide — classes, steps & sample run
Suggested classes
Account (abstract)— accountNo, holder, balance; deposit, withdraw, abstract monthlyInterest()SavingsAccount— Interest rate and minimum balance ruleCurrentAccount— Overdraft limit, no interestTransaction— type, amount, timestampBank— Accounts by number, transfer between accounts
Build it step by step
- Create the abstract Account with deposit and withdraw.
- Override withdraw in Savings and Current to enforce their rules.
- Record every operation as a Transaction in a list.
- Print statements polymorphically for all accounts.
- Throw InsufficientFundsException when a rule is broken.
Sample run
SB1001 Asha Savings Balance: 15,000.00
CA2001 Ravi Current Balance: -2,000.00 (overdraft)
Transfer 5,000 SB1001 -> CA2001 ... done
Interest credited to SB1001: 50.00 Stretch goals
- BigDecimal for exact money
- PIN-protected login
- Save accounts and transactions to files
Interview angle: How overriding withdraw lets each account type enforce its own rules without if-else on type.
Library Management (OOP) 15–20 hrs
Books, members, and issue/return workflow with overdue fines.
Features to implement
- Issue and return
- Fine calculation
- Search by title/author
Concepts required
Build guide — classes, steps & sample run
Suggested classes
Book— isbn, title, author, availableMember— id, name, borrowed books (limit 3)Loan— book, member, issue date, due dateLibrary— HashMap<String, Book> by ISBN; issue, return, fines
Build it step by step
- Model Book and Member with encapsulated fields.
- Store books in a HashMap keyed by ISBN.
- Issue: check availability and the member limit, then create a Loan.
- Return: compute days late with LocalDate and charge a fine.
- Search by title or author; save everything to files.
Sample run
Issue 978-0134685991 to M01 ... issued, due 2026-10-23
Return 978-0134685991 on 2026-10-26 ... 3 days late, fine Rs 15
Search author "bloch": Effective Java (available) Stretch goals
- Reservation queue per book with Queue<Member>
- Most-borrowed books report
- Admin and member roles
Interview angle: Why a HashMap keyed by ISBN beats scanning a list for every lookup.
Shape Area Toolkit 8–12 hrs
Abstract Shape (or Drawable interface) with Circle/Rectangle overrides — classic polymorphism demo.
Features to implement
- Abstract area/perimeter
- List of Shape references
- Interface + default method optional
Concepts required
Build guide — classes, steps & sample run
Suggested classes
Shape (abstract)— abstract area() and perimeter(); describe()Circle, Rectangle, Triangle— Override area and perimeter; validate in constructorsDrawable (interface)— draw() with a default methodShapeApp— Builds a List<Shape> and prints totals
Build it step by step
- Write the abstract Shape class.
- Implement three subclasses with constructor validation.
- Store mixed shapes in a List<Shape>.
- Print each area polymorphically and the total.
- Sort shapes by area with Comparator.comparingDouble.
Sample run
Circle(r=2.0) area 12.57 perimeter 12.57
Rectangle(3.0x4.0) area 12.00 perimeter 14.00
Triangle(3,4,5) area 6.00 perimeter 12.00
Largest: Circle Stretch goals
- Square extends Rectangle — discuss why it can break expectations
- Read shapes from a file
- Rewrite with a sealed interface and records
Interview angle: Show dynamic dispatch: a Shape reference calling Circle.area() at runtime.
Employee Payroll System 12–16 hrs
Full-time and contract employees with different pay rules under one interface.
Features to implement
- Polymorphic pay()
- Static employee count
- Report printing
Concepts required
Build guide — classes, steps & sample run
Suggested classes
Payable (interface)— double pay()Employee (abstract)— id, name; static counter for idsFullTimeEmployee— Monthly salary + allowances − taxContractEmployee— Hourly rate × hours workedPayroll— List<Payable>, report printing
Build it step by step
- Define Payable and the abstract Employee.
- Implement two employee types with their own pay rules.
- Generate ids with a static counter.
- Print payslips sorted by pay.
- Show department totals with a HashMap.
Sample run
E1 Asha Full-time Pay: 58,500.00
E2 Ravi Contract Pay: 32,000.00 (160 hrs x 200)
Total payroll: 90,500.00 Employees: 2 Stretch goals
- Intern type with a fixed stipend
- Payslip file per employee
- Tax slabs loaded from a config file
Interview angle: Why adding a new employee type needs no change in Payroll (open for extension).
Word Frequency & Unique Vocab 8–12 hrs
Count word frequencies with HashMap and unique words with HashSet; optional top-N report.
Features to implement
- Normalise case/punctuation
- Frequency map
- Unique-word set
Concepts required
Build guide — classes, steps & sample run
Suggested classes
TextCleaner— Lower-cases words and strips punctuationWordCounter— Map<String, Integer> counts and Set<String> unique wordsFrequencyApp— Reads a file and prints the top N
Build it step by step
- Read the file line by line.
- Clean each word and skip empty strings.
- Count with map.merge(word, 1, Integer::sum).
- Collect unique words in a HashSet (and a TreeSet for sorted output).
- Sort entries by count, descending, and print the top N.
Sample run
Total words: 5,214 Unique: 1,032
Top 5: the=312 and=190 java=144 to=121 of=117 Stretch goals
- Stop-word list loaded from a file
- Two-word phrase (bigram) counts
- Compare the vocabulary of two files
Interview angle: Complexity: O(n) to count, plus O(u log u) to sort the u unique words.
Expression Calculator (Stack) 10–14 hrs
Evaluate infix or postfix expressions using a stack and string parsing.
Features to implement
- Tokenise input
- Operator precedence or postfix eval
- Error messages via exceptions
Concepts required
Build guide — classes, steps & sample run
Suggested classes
Tokenizer— Splits input into numbers, operators, and bracketsInfixToPostfix— Shunting-yard algorithm with an operator stackPostfixEvaluator— Evaluates with a value stackCalcApp— Reads expressions until exit
Build it step by step
- Tokenise 3 + 4 * (2 - 1) into separate tokens.
- Convert infix to postfix using operator precedence.
- Evaluate the postfix with a Deque<Double> stack.
- Report mismatched brackets and division by zero with exceptions.
- Support multi-digit and decimal numbers.
Sample run
> 3 + 4 * (2 - 1)
Postfix: 3 4 2 1 - * +
Result: 7.0
> (5 + 2
Error: mismatched brackets Stretch goals
- Power operator with right associativity
- Variables such as x = 5
- Unary minus
Interview angle: Walk through how the operator stack enforces precedence.
Task Queue + Worker Thread 10–14 hrs
Enqueue jobs on a Queue and process them on a background thread with a synchronized hand-off.
Features to implement
- Producer menu on the main thread
- Worker thread consumes jobs
- Graceful shutdown / join
Concepts required
Build guide — classes, steps & sample run
Suggested classes
Task— id, description, simulated durationTaskQueue— BlockingQueue<Task> (or wait / notify by hand)Worker (Runnable)— Takes tasks and processes themTaskApp— Menu that adds tasks and requests shutdown
Build it step by step
- Create Task and a shared queue.
- Start a worker thread that loops on take().
- Add tasks from the main-thread menu.
- Stop the worker cleanly with a poison-pill task.
- join() the worker and print a summary.
Sample run
[main] added Task#1 resize-images
[worker] started Task#1
[main] added Task#2 send-emails
[worker] finished Task#1 in 1.2s
[main] shutdown requested ... worker joined, 2 tasks done Stretch goals
- Several workers with ExecutorService
- Priorities with PriorityBlockingQueue
- Retry failed tasks
Interview angle: Why BlockingQueue removes the need for manual wait / notify.
Inventory Management System 12–16 hrs
Products, stock levels, suppliers, and low-stock alerts with sorting, search, and file persistence.
Features to implement
- Add, update, and remove products
- Low-stock and out-of-stock report
- Sort by name, price, or quantity
Concepts required
Build guide — classes, steps & sample run
Suggested classes
Product— sku, name, price, quantity, reorder levelSupplier— id, name, contact, products suppliedInventory— Map<String, Product> by SKU; stock in / outReportService— Low-stock, valuation, and sorted lists with streamsInventoryApp— Menu and file persistence
Build it step by step
- Model Product with validation (no negative price or stock).
- Store products in a HashMap keyed by SKU.
- Implement stock in and stock out; throw OutOfStockException.
- Low-stock report: quantity at or below the reorder level.
- Sort with comparators and save to CSV.
Sample run
SKU Name Qty Price
P101 USB Cable 4 199.00 LOW STOCK
P102 Keyboard 25 899.00
P103 Mouse 0 499.00 OUT OF STOCK
Stock value: 26,919.00 Stretch goals
- Purchase orders generated for low-stock items
- Sales history with daily totals
- Barcode-style SKU validation
Interview angle: How streams produced the low-stock and valuation reports in a few lines.
Parking Lot System (LLD) 12–18 hrs
The classic low-level design interview problem: levels, spots by vehicle size, tickets, and fees on exit.
Features to implement
- Spot allocation by vehicle type
- Ticket with entry time
- Hourly fee calculation on exit
Concepts required
Build guide — classes, steps & sample run
Suggested classes
Vehicle (abstract)— number, size; Bike, Car, Truck subclassesParkingSpot— id, size, occupied vehicleLevel— Free spots per size — Map<Size, Queue<ParkingSpot>>Ticket— id, vehicle, spot, entry timeFeeStrategy (interface)— Hourly or flat pricingParkingLot— park(), leave(), availability
Build it step by step
- Draw the class diagram before writing code.
- Allocate the nearest free spot that fits the vehicle size.
- Issue a ticket with the entry time.
- On exit, free the spot and compute the fee with a FeeStrategy.
- Show availability per level; handle a full lot with an exception.
Sample run
Park KA01AB1234 (Car) ... Level 1, Spot C07, Ticket T1001
Park KA02CD5678 (Truck) ... Lot full for trucks
Exit T1001 after 2h 40m ... Fee Rs 60
Level 1 free: Bike 10, Car 23, Truck 2 Stretch goals
- Multiple entry and exit gates
- Reservations
- Electric-charging spots
Interview angle: Justify each class and interface — this is exactly how LLD rounds are scored.
Capstone / Portfolio Projects
Larger builds that combine OOP, collections, files, and threads. One done well beats ten tiny demos.
Mini Console Game 20–30 hrs
Turn-based or simple grid game with entity classes, ArrayList/HashMap state, and save/load.
Features to implement
- Entity hierarchy
- Game loop
- Save game to file
Concepts required
Build guide — classes, steps & sample run
Suggested classes
Entity (abstract)— name, hp, position; abstract act()Player, Enemy, Item— Subclasses with their own behaviourGameMap— char[][] grid and movement rulesGameState— Entities, score, level; save / loadGameLoop— Read input, update, render
Build it step by step
- Draw a small grid and move the player with W, A, S, D.
- Add enemies that move each turn and items to collect.
- Give every entity an act() method (polymorphism).
- Save and load the game state to a file.
- Add levels and a high-score table.
Sample run
#########
#P..*...#
#..E....#
#.....*.#
#########
HP: 10 Score: 20 Move (w/a/s/d): d Stretch goals
- Enemy path-finding with BFS
- Inventory stored in a HashMap
- Colour output with ANSI codes
Interview angle: How the game loop separates input, update, and render.
Personal Finance Manager 20–28 hrs
Accounts, transactions, categories, monthly reports — strong OOP + HashMap/ArrayList showcase.
Features to implement
- Multiple accounts
- Category totals
- Export report
Concepts required
Build guide — classes, steps & sample run
Suggested classes
Account— name, type, balanceTransaction— date, amount, category, accountLedger— List<Transaction> and Map<String, Account>ReportService— Monthly and category reports with streamsStorage— CSV import and exportFinanceApp— Menu (package com.finance.app)
Build it step by step
- Model accounts and transactions in separate packages.
- Record income and expenses, updating balances.
- Monthly report grouped by category with Collectors.groupingBy.
- Budgets per category with warnings when exceeded.
- Export reports to CSV and import a bank statement.
Sample run
October 2026 Income 85,000 Expense 41,250
Rent 20,000 ##########
Food 8,400 ####
Travel 4,850 ##
Savings rate: 51% Stretch goals
- Recurring transactions
- Password-protected data file
- Charts in a JavaFX window
Interview angle: Show how streams and groupingBy built the monthly report.
Notes CLI with Tags 18–25 hrs
Create, list, search, and tag notes stored as files with an in-memory HashMap/HashSet index.
Features to implement
- Tag search with HashSet
- Full-text naive search
- Args via main(String[] args)
Concepts required
Build guide — classes, steps & sample run
Suggested classes
Note— id, title, body, tags, createdNoteStore— One file per note inside notes/TagIndex— Map<String, Set<Integer>> — tag to note idsNotesCli— Parses commands from main(String[] args)
Build it step by step
- Support add, list, show, and delete commands from args.
- Save each note as a file and rebuild the index on start.
- Index tags in a HashMap of HashSets.
- Search by tag and by text.
- List notes by date with a simple pager.
Sample run
$ java NotesCli add "Exam prep" --tags java,oop
Saved note #12
$ java NotesCli tag java
#7 Streams cheatsheet [java]
#12 Exam prep [java, oop] Stretch goals
- Edit notes in place
- AND search across tags (java + oop)
- Export all notes to Markdown
Interview angle: Why a Map of Sets makes tag search fast.
Concurrent Download Simulator 16–22 hrs
Simulate several “downloads” on worker threads, track progress in a shared map, and print a live status line.
Features to implement
- Thread per job or a small pool
- Synchronized progress map
- Join all workers before summary
Concepts required
Build guide — classes, steps & sample run
Suggested classes
Download (Runnable)— name, size, progressProgressTracker— ConcurrentHashMap<String, Integer> of percentagesDownloader— ExecutorService that runs the downloadsStatusPrinter— Prints a status line every 500 ms
Build it step by step
- Simulate a download with a loop and Thread.sleep.
- Run several downloads in a fixed thread pool.
- Update progress in a ConcurrentHashMap.
- Print the status from a scheduled task.
- Wait with awaitTermination and print a summary.
Sample run
file1.zip [##########] 100% file2.iso [######----] 60% file3.mp4 [###-------] 30%
...
All 3 downloads finished in 6.4s Stretch goals
- Pause and resume
- Random failures with retry
- Per-download speed limit
Interview angle: Why ConcurrentHashMap instead of a synchronized HashMap, and how races were avoided.
Hotel Room Booking System 22–30 hrs
Rooms, customers, and bookings with date ranges, cancellations, invoices, and saved data — a complete business app.
Features to implement
- Availability search by check-in and check-out dates
- Double-booking prevention
- Invoice with taxes and cancellation rules
Concepts required
Build guide — classes, steps & sample run
Suggested classes
Room (abstract)— number, base price; Standard, Deluxe, Suite subclassesCustomer— id, name, phoneBooking— room, customer, check-in, check-out, statusBookingService— Availability by date range, book, cancelInvoiceService— Nights × rate + taxes − discountsHotelApp— Menu and file persistence
Build it step by step
- Model room types with inheritance and their own pricing.
- Check availability: two bookings overlap if start1 < end2 and start2 < end1.
- Create bookings and reject overlaps with an exception.
- Cancellation rules and a printed invoice.
- Persist rooms, customers, and bookings in files.
Sample run
Search 2026-12-24 to 2026-12-27 ... Deluxe 201, Suite 301 free
Book 201 for C12 ... Booking B5001 confirmed (3 nights)
Invoice B5001: 3 x 4,500 = 13,500 + 12% GST = 15,120.00 Stretch goals
- Seasonal pricing
- Room service charges on the bill
- Occupancy report per month
Interview angle: Explain the date-overlap check and how double booking is prevented.
How to Build Any of These
| Step | What to do |
|---|---|
| 1. Plan on paper | List features and the classes/collections each one needs before you type a line. |
| 2. Design types first | Sketch classes and which collection owns the data. Prefer ArrayList and HashMap defaults. |
| 3. Build one feature at a time | Get “add a record” working completely before “delete” or “search”. |
| 4. Encapsulate and validate | Keep fields private. Reject bad input at the edges with exceptions or clear messages. |
| 5. Compile with a real JDK | Use javac and java (or your IDE). Treat warnings as bugs. Put types in packages as the project grows. |
| 6. Test edge cases | Empty lists, missing files, bad Scanner input, and concurrent access if you use threads. |
| 7. Close files with try-with-resources | Do not leak readers/writers. Catch checked exceptions at the boundary. |
| 8. Write a README and push it | Explain how to compile, the features, and one screenshot of it running. |
Pair this page with Day 30 of the learning plan, the cheatsheet, and interview Q&A while you build.
Project Structure & README Template
Recommended folder layout
bank-app/
├── README.md
├── data/
│ └── accounts.csv
└── src/
└── com/bank/
├── app/BankApp.java # main + menu only
├── model/Account.java # data classes
├── model/SavingsAccount.java
├── service/BankService.java # business rules
├── repo/AccountRepository.java # file load / save
└── exception/InsufficientFundsException.java
# compile and run (Linux / macOS)
javac -d out $(find src -name "*.java")
java -cp out com.bank.app.BankApp
# compile and run (Windows)
dir /s /b src\*.java > sources.txt
javac -d out @sources.txt
java -cp out com.bank.app.BankApp README.md template
# Bank Account System (Java)
Console banking app with savings and current accounts, transfers,
and statements saved to CSV.
## Features
- Create savings / current accounts
- Deposit, withdraw, transfer with validation
- Monthly interest for savings accounts
- Statements saved to data/accounts.csv
## Concepts used
OOP (abstract classes, inheritance, polymorphism), ArrayList, HashMap,
custom exceptions, file handling, try-with-resources
## How to run
javac -d out $(find src -name "*.java")
java -cp out com.bank.app.BankApp
## Sample run
(paste 10-15 lines of real console output or a screenshot)
## What I learned / next steps
- Why withdraw is overridden per account type
- Next: JUnit tests and a MySQL backend with JDBC
Keep main thin: it should only create objects and run the menu. Business rules go in
service classes, data in model classes, and file code in repository classes — the same layering used
in real Spring Boot applications.
Quality Checklist & Common Mistakes
What reviewers look for
| Area | Check |
|---|---|
| Structure | Packages by role (model, service, repo, app); one class, one job |
| Encapsulation | Private fields, validated setters or constructors, no public mutable state |
| Input handling | Bad input never crashes the program; clear messages and retry |
| Exceptions | Specific exceptions, custom ones for business rules, no empty catch blocks |
| Collections | The right structure for the job (HashMap for lookups, List for order) |
| Files | try-with-resources, data survives restarts, corrupt lines handled |
| Naming | Classes as nouns, methods as verbs, no single-letter names outside loops |
| Readability | Short methods, no duplicated code, constants instead of magic numbers |
| Testing | Edge cases checked: empty data, zero, negatives, very large values |
| Presentation | README with features, run steps, sample output; clean Git history |
Mistakes to avoid
| Mistake | Fix |
|---|---|
| Everything inside main | Move logic into classes; keep main for wiring and the menu |
| Public fields everywhere | Make fields private and expose behaviour through methods |
| Copy-pasted blocks for each option | Extract methods; use polymorphism instead of long if-else chains on type |
| Crashing on letters typed instead of numbers | Check hasNextInt() or catch NumberFormatException and ask again |
| Comparing Strings with == | Use equals or equalsIgnoreCase |
| Using double for money | Use BigDecimal or store paise / cents in a long |
| Files left open | Use try-with-resources for every reader and writer |
| Losing data on exit | Save after every change, or on a clean exit option |
| Huge first version | Build one feature end to end, then add the next |
| No README | Recruiters skip repositories they cannot understand in 30 seconds |
Questions Interviewers Ask About Your Project
- Walk me through your project in two minutes — the problem, the features, and your role.
- Draw the main classes and explain why each one exists.
- Why did you choose this collection (ArrayList, HashMap, Queue) for this data?
- Where did you use inheritance, interfaces, or polymorphism, and why?
- How do you handle invalid input and failures such as a missing file?
- What was the hardest bug, and how did you find and fix it?
- What is the time complexity of your search, add, and delete operations?
- If 1,000 users used it at once, what would break and how would you fix it?
- How would you test it? Which cases would you automate first?
- What would you add or change if you had another week?
Prepare a two-minute explanation and a class diagram for every project on your resume. Each build guide above ends with the interview angle most likely to come up for that project.
Level Up a Finished Project
Once a console version works, upgrade the same project instead of starting a new one — it shows growth and turns a student exercise into a portfolio piece.
| Upgrade | Learn | Example |
|---|---|---|
| Unit tests | JUnit 5 and assertions | Test BankService.withdraw for overdraft and insufficient-balance rules |
| Build tool | Maven or Gradle | Standard folder layout, dependencies, and one-command builds |
| Database | JDBC with MySQL or PostgreSQL | Replace CSV files with tables and SQL queries |
| Desktop GUI | JavaFX or Swing | Forms and tables instead of a console menu |
| REST API | Spring Boot | Expose accounts as /api/accounts endpoints for a web or mobile app |
| Logging | java.util.logging or SLF4J | Replace println debugging with log levels |
| Version control | Git and GitHub | Small commits with clear messages and a public repository |