Question: java code please The following UML diagram represents filter design pattern. 1. Write java implementation for the following UML class diagram [6 POINTS] 2. Write
The following UML diagram represents filter design pattern. 1. Write java implementation for the following UML class diagram [6 POINTS] 2. Write a Demo class that contains main method. In the main method, create a list of type item and size 10, and apply 3 filters on it. [1.5 Points] AndFilter apply Fiber List item OrFilter appyFiber List item face Fitter VA Filter temPattem main() void printitemList void - apply Fiter Listiem Less ThanPrice Filter - price for - applyFibero. Letnom GreaterThanRateFilter -rate int opyFilter() Liste tem TypeFilter -type String Filter Listettem Use Item type: String price float ratet - temo .getType -getPrice -getRate()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
