Question: please provide java code for the below The method implementations in Funcutil (in the Adminsite package) are largely based on functional interface. However, these interfaces
please provide java code for the below

The method implementations in Funcutil (in the Adminsite package) are largely based on functional interface. However, these interfaces can be better implemented using lambda expression or / and Java 8 streams. In doing so, you will be able to simplify your codes, and at the same time improve the clarity and readability aspects. We will revisit the YourPrime program for this programming assignment, so, you should be familiar with the skeleton codes. The core of the program (yourPrime package) is pretty much unchanged, however, there are a few minor additions made to facilitate the assignment. For this tasks, you are required to refactor the following methods: 1 - searchSubcriber (String keyword) : use Java 8 Streams, and lambda expression to create the pipeline to search for a keyword in the user ID and name attributes of Subscriber. You should collect your stream as a List Subscriber > and then return the list =[1 Mark ] 2 - calculateoverdueFees ( ) : use Java 8 Streams, and lambda expression to return the total sum of the fees for all subscribers = [1 Mark ]. 3 - printallsubscribers (String sortBy) : use Java 8 Streams, and method reference to print out a sorted list according to the argument sortBy. You must use the Function interface provided in the method to map your stream before printing your output. You can either sort the list by the subscriber's name, or their outstanding fees = [2 Marks]. 4 - getAverageoutstanding () : use Java 8 Streams and method reference to generate the average outstanding value, and return the amount =[1 Mark ]. Note: Use the comments available in the method body to help you in completing this task. It's important to not overthink the solution, you are basically writing a Java 8 version of function interface implementation, and it should be simple. Having said that, do remember that it is best to use simple java codes whenever possible
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
