Question: Task 1 - Functional Programming / Lambda Expressions 1 . Fill in the blanks in Lab 1 1 . java. Lab 1 1 . java

Task 1- Functional Programming/Lambda Expressions
1. Fill in the blanks in Lab11.java.
"Lab11.java"
import java.util.Arrays;
import java.util.List;
import java.util.Set;
import java.util.stream.*;
import java.util.function.*;
import java.util.Map;
public class Lab11
{
public static void main(String[] args)
{
List fruit = Arrays.asList("cherry","banana","berry","apple","cherry","kiwi","fig","date","lemon","honeydew","cherry","elderberry","apple","banana","grape");
// Collect elements into a Set
// Collect the fruit into groups based on their first character
// Group fruit by the length
//Collect the fruit that has erry in it
//collect the fruit that has 5 or less symbols
//find the total number of symbols in all the fruit stored
List data = Arrays.asList(87,23,45,100,6,78,92,44,13,56,34,99,82,19,1012,78,45,90,23,56,78,100,3,43,67,89,21,34,10);
// Partition data based on if >=50
//divide data into groups based on the remainder when divided by 7
//find the sum of the data
//collect the unique values
//compute the cube of each values
//find the sum of the cubes of each value
//increase the value of each element by 5
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!