Answered step by step
Verified Expert Solution
Question
1 Approved Answer
What you need to do (Change on Main.java only; Whenever you need to implement a code, you will find a comment like this //#########
What you need to do (Change on Main.java only; Whenever you need to implement a code, you will find a comment like this //######### Take Action Below #########): Actions - Part 1: Create and use an anonymous class that sorts by first name high to low Create and use a lambda expression that sorts by last name low to high Create and use a lambda expression that sorts by title Create and use a lambda expression that sorts first by title then by Level Create and use a lambda expression that sorts first by last name then by first name Actions - Part 2: Use Lambda expression to print all elements of the ArrayList Hint: You can store each of the previous requirements in their own variables and use them once at a time to test them. The variable for the first requirement would look like Comparator AnonyClassFirstNameHighToLow= ... //Here goes your anonymous class implementation. And upon successfully creating your variable, and the anonymous class or lambda implementation, you can change the Collections.sort(unsorted) to apply your action, i.e., for the first requirement it would be Collections.sort(unsorted, AnonyClassFirstNameHighToLow); 1 Tad 2 Ok 3 Candice 4 Keitha 5 Caprice 6 Karma Steenberg Mainframe Programmer Heiner Systems Programmer 7 Jacalyn Dunkin Applications Programmer 8 Sulema Savell Computer Language Coder Computer Programmer 9 Rozanne Pavone 10 Monte Webb 11 Gordon Martin Junior Software Developer Mainframe Programmer 12 Noelia Tietz Systems Programmer 13 Marylou Santangel Applications Programmer 14 Georgia Carlen 15 Arnoldo 16 Karin 17 Darren 18 Adelia Peppler Junior Software Developer Montalvo Mainframe Programmer Brewton Systems Programmer 19 Angeles Goodpast Applications Programmer 20 Jacqueline Whitchurc Computer Language Coder 21 Kathryne Mervis Computer Programmer 22 Daniel Truax Junior Software Developer Mainframe Programmer 23 Kenda Systems Programmer 24 In 25 Dusty Mahlum Applications Programmer Brewton Computer Language Coder Smyre Computer Programmer Christina Junior Software Developer 26 Yer 27 Jay 28 Chasity 29 Maxwell Computer Language Coder Pederson Computer Programmer Melone Weis Macaraeg Applications Programmer Hunt Computer Language Coder Sebring Computer Programmer Hennings Junior Software Developer Depuy Mainframe Programmer 30 Genny Oullette Systems Programmer 31 Maegan Eisenhart Applications Programmer 32 Garret Jowett 33 Tracie Marler 34 Dwayne Rexroad 35 Bell Feola Computer Language Coder Computer Programmer Junior Software Developer Mainframe Programmer Systems Programmer Applications Programmer 36 Terrilyn Suess 37 Kelle Earp 38 Raguel Rohrer Computer Language Coder 39 Margarett Burtensha Computer Programmer 28 33 12 35 18 17 39 47 23 19 45 7 24 25 47 42 40 48 35 39 20 23 4 6 34 43 35 19 35 2 32 29 20 21 44 40 6 6 47
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started