The Schedule class contains several courses. Each Course has a name, start time, and end time. The toString method for a Course should return a string containing the name, start time, and end time. For example, if the course is "Networking I" and it is held from 8am to 8:50am, the toString method for that course should return: "Networking I: 8am - 8:50am" The toString method for a Schedule should return "Your Schedule:" followed by all of the courses in the schedule. Below is an example showing what the Schedule's toString method should return if it contained five courses (Networking I, Database, Web Development, Java, and Yoga): "Your Schedule Networking I: 8am - 8:50am Database: 9am - 9:50am Web Development: 10am - 10:50am Java I: 12pm - 12:50pm Yoga: 1pm - 1:50pm" Include a Main.java to test your code
The Schedule class contains several courses. Each Course has a name, start time, and end time. The toString method for a Course should return a string containing the name, start time, and end time. For example, if the course is "Networking I" and it is held from 8am to 8:50am, the toString method for that course should return:
"Networking I: 8am - 8:50am"
The toString method for a Schedule should return "Your Schedule:" followed by all of the courses in the schedule. Below is an example showing what the Schedule's toString method should return if it contained five courses (Networking I,
"Your Schedule
Networking I: 8am - 8:50am
Database: 9am - 9:50am
Web Development: 10am - 10:50am
Java I: 12pm - 12:50pm
Yoga: 1pm - 1:50pm"
Include a Main.java to test your code
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 4 images