Write code that uses lambdas and streams to satisfy the requirements listed below. Print a list of all employees that earn $50,000 or more: Print a list of the names (not the Employee instances) of all employees who were hired on or after Jan. 1, 2012. Print the maximum salary of all employees. Print the minimum salary of all employees Now, print the average salary of all Female and Male employees: Finally, use the reduce() operation to find the Employee instance of the employee with the highest salary:

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Hello.. i hope you are well. please code this for me in java and follow the instructions mentioned as it is

Write code that uses lambdas and streams to satisfy the requirements listed below.

Print a list of all employees that earn $50,000 or more:
Print a list of the names (not the Employee instances) of all employees who were hired on or after Jan. 1, 2012.
Print the maximum salary of all employees.
Print the minimum salary of all employees
Now, print the average salary of all Female and Male employees:
Finally, use the reduce() operation to find the Employee instance of the employee with the highest salary:

Sheryl Sandberg : 2014-07-01
Susan Wojcick : 2015-06-01
Zuckerberg, Mark : 2016-05-12
Brin, Sergey : 2016-08-05
Employee{id=7, name='Bezos, Jeff', hireDate=2004-04-02, salary=68109.0, gender=Male}
Employee{id=8, name='Sheryl Sandberg', hireDate=2014-07-01, salary=87846.0, gender-Female}
Employee{id=9, name='Buffet, Warren', hireDate=2011-07-23, salary=95035.0, gender=Male}
Employee {id=12, name='Brin, Sergey', hireDate=2016-08-05, salary=74416.0, gender=Male}
Max: 95035.0
Employee{id=21, name='Buffet, Warren', hireDate=2011-07-23, salary=95035.0, gender=Male}
Min: 37210.0
Averages: Male:71502.5 Female:62528.0
Averages: Male:71502.5 Female:62528.0
Process finished with exit code 0
Transcribed Image Text:Sheryl Sandberg : 2014-07-01 Susan Wojcick : 2015-06-01 Zuckerberg, Mark : 2016-05-12 Brin, Sergey : 2016-08-05 Employee{id=7, name='Bezos, Jeff', hireDate=2004-04-02, salary=68109.0, gender=Male} Employee{id=8, name='Sheryl Sandberg', hireDate=2014-07-01, salary=87846.0, gender-Female} Employee{id=9, name='Buffet, Warren', hireDate=2011-07-23, salary=95035.0, gender=Male} Employee {id=12, name='Brin, Sergey', hireDate=2016-08-05, salary=74416.0, gender=Male} Max: 95035.0 Employee{id=21, name='Buffet, Warren', hireDate=2011-07-23, salary=95035.0, gender=Male} Min: 37210.0 Averages: Male:71502.5 Female:62528.0 Averages: Male:71502.5 Female:62528.0 Process finished with exit code 0
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Fibonacci algorithm
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education