Question: Java problem create a class TeenCount that implements the method public static int[] teenLess(int[] array) which takes in an array of integers as the input,
Java problem
create a class TeenCount that implements the method public static int[] teenLess(int[] array) which takes in an array of integers as the input, applies the appropriate predicate over all the elements of the array and then returns a new array containing only those values which are not teens i.e. values which don't lie between 13 and 19 inclusive. Feel free to use the applyPredicate() method in your program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
