Beginner level · Module 5 of 5 · 10 guided hours
Console Application Project in Java
Plan and build a complete console application from requirements, using classes, collections, methods and input validation.
Learning objectives
- Turn a short requirement into classes, methods and a menu
- Build the application in small, tested steps
- Handle invalid input and present the finished program
Topics
- reading requirements
- identifying classes and responsibilities
- menu loops
- input validation with try/catch
- manual test plans
- demonstrating a program
Lessons
-
Lesson 1 From Requirements to a Plan
Read a short requirement and identify the classes, their data and methods, and the menu the user will see.
requirementresponsibilityclass planmenu flow
-
Lesson 2 Building a Menu-Driven Program
Implement the plan in stages: data classes first, then a menu loop that calls their methods.
incremental developmentmenu loopswitch dispatchseparation of concerns
-
Lesson 3 Validating Input and Testing the Program
Stop invalid input from crashing the program, test with a written plan, and present the finished application.
NumberFormatExceptiontry/catchedge casetest plan
Practical activity
Build the Shop Sales Recorder level project in class, in stages, with a short code review after each stage.
Expected outcomes
- A complete, working console application
- A habit of building and testing in small steps
Assessment
The level project, assessed against its criteria, plus a five-minute demonstration and explanation of one design decision.
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.