Professional Documents
Culture Documents
Design and code a class named MyCake which will implement interface ICake and complete 2
methods which were declared in ICake.
String getHighestPrice(ArrayList a) – return the name of the first Cake in the list of Cakes
which has highest sales price (sales price = price + imported tax).
int count(ArrayList a) – count and return the number of Cake that have imported tax less than
the imported tax of the first Cake in the list.