Question: Hi All , I have a java lab i need to do and I need help with this. I need to implement a method to

Hi All , I have a java lab i need to do and I need help with this. I need to implement a method to Build a list of the names of students currently enrolled in a number of units strictly greater than the unitThreshold....

________________________________________________________

/*
* This file should remain unchanged.
*/
class Course
{
private final String name;
private final int numUnits;
public Course(final String name, final int numUnits)
{
this.name = name;
this.numUnits = numUnits;
}
public String getName()
{
return name;
}
public int getNumUnits()
{
return numUnits;
}

}

_________________________________________________

import java.util.LinkedList;
import java.util.List;
import java.util.Map;
class ExampleMap
{
public static List highEnrollmentStudents(
Map> courseListsByStudentName, int unitThreshold)
{
List overEnrolledStudents = new LinkedList<>();
/*
Build a list of the names of students currently enrolled
in a number of units strictly greater than the unitThreshold.
*/
return overEnrolledStudents;
}
}

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!