Question: Write a program in Java that creates an ArrayList of students with the following names: James, Chris, Alonzo, Pine, Sam, John, Nat Print out the
Write a program in Java that creates an ArrayList of students with the following names:
James, Chris, Alonzo, Pine, Sam, John, Nat
- Print out the sorted list Alphabetically using Lambda expression.
- Print out the sorted list based on the length on the name using Lambda expression.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
