Question: java 1. Create a Course class with the following attributed and methods. Attributes: String: section; int: capacity; String: courseName Constructor: Course (String, int, String) Methods:

 java 1. Create a Course class with the following attributed and
java

1. Create a Course class with the following attributed and methods. Attributes: String: section; int: capacity; String: courseName Constructor: Course (String, int, String) Methods: mutators, accessors and toString() 2. Create a ClassHandler class with the following attributes and methods. Attributes: Course: course; String: path Constructor: ClassHandler(Course, String) Methods: 1. void writeToFile(String) This method writes the values of the course to a file with the name of the input parameter 2. Course readFromFile() This method reads the content of the file path and returns it as a Course. 3. Create a Driver class to test your Class Handler functionalities Your code should be able to write the values of the attributes of an instance of Course to a file and read the attributes back from that file. Submission: Once you are done 1. Compress your file into one zip file and upload it Your file should be called labo_studentID.zip, where studentID is your student ID number

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!