Question: Assignment 8 (20 points) - In Java Programming Question 1 (10 points) Given a list, L, of integers, write stream expressions to compute: The sum

Assignment 8 (20 points) - In Java Programming Question 1 (10 points) Given a list, L, of integers, write stream expressions to compute: The sum of the squares of the elements of L. The sum of the elements of L that are greater than 25. The maximum element of L. note: you are not allowed to use the max stream operator. The largest even number in L. note: you are not allowed to use the max stream operator. True if any element of L is odd note: you are not allowed to use the anyMatch stream operator. Write a main method that tests your code. Question 2 (10 points) Given a file, F, of integers (so multiple integers per line separated by commas), write stream expressions to compute: How many numbers are in F. The number of unique numbers in F. The length of the longest line of F. note: you are not allowed to use the max stream operator. The sum of the even numbers in L. True if all elements of L are even. note: you are not allowed to use the allMatch stream operator. Write a main method that tests your code.

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 Databases Questions!