The purpose of this class is to create an implementation of a Worker and Transactable which can deposit, withdrawal, and getBalance, of its composite BankAccount.
Methods to Complete
BankAccount getBankAccount()
void setBankAccount(BankAccount bankAccount)
Transactable
Description
The purpose of this interface is to ensure a class can deposit, withdrawal, and getBalance.
Methods to Complete
void deposit(Double amountToIncreaseBy)
void withdrawal(Double amountToDecreaseBy)
Double getBalance()
Worker
Description
The purpose of this interface is to ensure a class has BankAccount
Methods to Complete
BankAccount getBankAccount()
void setBankAccount(BankAccount bankAccount)
Section 4 - Collections
Word Counter
Description
The purpose of this class is to manage a mapping of String to Integer.
The class should be able to identify the number times a word has occurred in a given String array
A word is a series of characters delimited by spaces
Methods to Complete
Map<String, Integer> getWordCountMap()
Food
Description
The purpose of this class is to manage a mapping of Spice to Integer.
The class should be able to identify the number of a specific spice-type applied to an instance of a food.