Software engineering

Corazonnnn
InterfaceHomework.pdf

1. Write a class that implements the Icon interface type and draws an image of a coffee mug by drawing and filling shapes. You could modify from MarsIcon and

CarIcon examples

2. Modify a class BankAccount (attached) so it will implement the Comparable interface type. Order bank accounts by increasing balance. Supply a test program

that sorts an array list of bank accounts.

3. Create a class called BankComparatorByName that implements Comparator interface. It will compare two bank accounts using their last names. If last names

are same it will compare first names. Then in the test program, sort an array of

bank accounts by name.

You could modify from Comparable and Comparator examples