UML diagram for below exercise and modify the existing script for below exercise as per proper methods and naming conventions.
Java Streams Exercise
Assume that an Electronics Shop currently has the following products in its stock for sale:
Task 1: Write a method to filter out all the mobile products and show their names and the
Task 2: Write a method that sorts the price from low to high according to a given category and
shows the sorted products.
NOTE: Please use Java Streams for Filter and Sort.
Java Generics Exercise
Assume the above same Electronics Shop data and please complete the following tasks on
Java Lambda Expression Exercise
Use the same above data of the Electronic Shop;
Task 1: Write a Lambda expression to get the total price of the entire stock available in the
Task 2: Write a Lambda expression to list out and show the products having a price of more
than 50 thousand.