So now we need a place to store the Customers as well. What we need to do Is create a place for storing our new clients.
Objectives:
1 - Create a class called CustomerRepository within the repository/ package.
2 - Create a List within the CustomerRepository ( List< Customer > customers = new ArrayList<>(); )and add a getter for this list.
3 - Rename the already existing ShainDatabase to ItemRepository.
So now we need a place to store the Customers as well. What we need to do Is create a place for storing our new clients.
Objectives: 1 - Create a class called
CustomerRepository
within the repository/ package. 2 - Create a List within the CustomerRepository ( List< Customer > customers = new ArrayList<>(); )and add a getter for this list. 3 - Rename the already existingShainDatabase
toItemRepository
.