Dividing students into groups based on equal medians in Java
I’m working on a Java program where I have a ClassGenerator class that manages students’ marks over time and needs to divide them into groups based on equal medians. Here’s a simplified version of what I’m trying to achieve: