Okay, let's break this down. We need to get the stream of players, and then somehow calculate the average of their scores. I'm pretty sure one of these options will do the trick.
Ooh, this is a tricky one. I'm not entirely sure about the difference between mapToInt, mapToDouble, and map. I'll have to think this through carefully.
Haha, this is a classic Java 8 question. I remember struggling with these stream API questions when I was studying for the exam. But I think I've got it figured out now.
Hmm, let me think about this. I know we need to use the stream() method to get a stream of the players, but I'm not sure which specific method will give us the average.
Val
6 months agoLauran
7 months agoBeula
7 months agoChandra
7 months agoLauran
7 months agoJolene
8 months agoRory
8 months agoKris
8 months agoNathalie
8 months agoLenita
8 months agoLatosha
8 months agoLing
7 months agoRickie
7 months ago