From the course: Advanced Java Programming
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Working with multiple modules - Java Tutorial
From the course: Advanced Java Programming
Working with multiple modules
- [Instructor] In this example, I have a simple application for booking appointments with hair dressers. This project is inside the exercise folders directory. If you are using the project, you will need to make sure that the exercise folder begins with a small e and not a capital E as this can cause a pattern intact exception to be thrown. I want to use modularization to make that I have good encapsulation in my program. In this project, I have two modules, one called customer and one called booking system. Inside the booking system module, I have two packages. One is called employees and the other is called scheduling. Inside the employee package, I have a class called hair dresser. Each hair dresser has a name and an array list of strings which contains the days that they are available. There is a method to set the days that they are available called set days available and another method to remove days from the list. There are also getter methods for the name and the list of days…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.