Question: Java: Agents are people that gather information for customers in various locations. Consider the agent and their locations as following: agent location Peter Rome Ann
Java:
Agents are people that gather information for customers in various locations.
Consider the agent and their locations as following:
| agent | location |
| Peter | Rome |
| Ann | Paris |
| Mary | Rome |
| Paul | Rome |
Information for the number of customers that are served from their agents in years is as following:
| agent | year | Number of customers |
| Paul | 2011 | 100 |
| Peter | 2012 | 150 |
| Peter | 2011 | 52 |
| Ann | 2012 | 85 |
| Ann | 2012 | 75 |
| Mary | 2012 | 950 |
Using functional interface, please prepare the following:
a.Find from the Customer information the records for the 2011, and sort them by the number of customers.
b.Find the unique agent locations.
c.Find all the agent locations from Rome
d.Find if there is any agent from Paris.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
