Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Need help with java Create a class Section that contains the following informati

ID: 3908352 • Letter: N

Question

Need help with java

Create a class Section that contains the following information:

String department (e.g., "CSC")

int courseNumber (e.g., 151)

int sectonNumber (e.g., 4101)

String instructor (e.g., "Sophie")

String title (e.g., "Introduction to Java")

Use Section objects as the key for a HashMap in the attached Register class. Sophie, Sally and Jack should all be in the same section. Everyone else should be in different sections.

one file was provided

------------------------------------------------------------------------------

------------------------------------------------------------------------------

Explanation / Answer

public class Section { private String department; private int courseNumber; private int sectonNumber; private String instructor; private String title; public Section(String department, int courseNumber, int sectonNumber, String instructor, String title) { this.department = department; this.courseNumber = courseNumber; this.sectonNumber = sectonNumber; this.instructor = instructor; this.title = title; } }