Counting Filtered Data Take Two Following the DRY Principle, use the code example below startsWithS and modify
Fantastic news! We've Found the answer you've been seeking!
Question:
Counting Filtered Data Take Two
Following the DRY Principle, use the code example below startsWithS and modify it to be more generic. Write a new static method called startsWithLetterString Letter
final Predicate startsWithS name name.startsWithS;
Steps
Write a static method what takes a String letter as a parameter, and returns the name if it starts with the letter passed in
Use public static Predicate startsWithLetterString letter and return a Lambda Expression in the method.
Related Book For
Modern Database Management
ISBN: 978-0133544619
12th edition
Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi
Posted Date: