public class Course { static int maxCapacity = 100; String courseName; int enrollments = 0; Course(String courseName) { this.courseName = courseName; this.enrollments = 0; this.enrolledStudents = new String[maxCapacity]; } static void setMaxCapacity(int maxCapacty) { Course.maxCapacity = maxCapacty; } void enrollStudent(String studentName) { enrolledStudents[enrollments] = studentName; enrollments++; } void unenrollStudent(String studentName) { System.out.println("Student removed"); enrollments--; } }