Question: Defined a two-dimensional array of grades with 10 rows and three columns, representing 10 students grades on three exams. Use a stream pipeline to calculate
Defined a two-dimensional array of grades with 10 rows and three columns, representing 10 students’ grades on three exams. Use a stream pipeline to calculate the average of all the grades. For this exercise, use Stream method of to create a stream from the two-dimensional array and Stream method flatMap-ToInt to map each row into a stream of int values.
Step by Step Solution
3.40 Rating (162 Votes )
There are 3 Steps involved in it
First we need to define a twodimensional array of grades with 10 rows and 3 columns Lets say we have ... View full answer
Get step-by-step solutions from verified subject matter experts
