Question: JAVA!!!! PLEASE 1. Create a Course class with the following attributes and methods. Attributes: String: section; int: capacity; String: courseName Constructor: Course (String, int, string)

JAVA!!!! PLEASE

JAVA!!!! PLEASE 1. Create a Course class with the following attributes and

1. Create a Course class with the following attributes 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 ClassHandler 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

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!