Stream/Collector: Subject average, filter above average, top-K by subject, and median per subject

Problem: Student grade processing with Java Streams (Collector/Predicate)

You are given a list of Student objects, each with:

  • name (String)
  • grade (double)
  • subject (String)

Implemen...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: