Implement a class ClassSchedule with a title (a string), days the class meets (a string), a start meeting time (a string), an end meeting time (a string) and a class room (a string)

Provide a constructor and these methods:
   public String getTitle()
   public String getTime()
   public String getRoom()
These methods return the class title, the time period in the form days start time-end time, and class room. An example time is: MWF 9:00-9:50

Complete the following file:

ClassSchedule.java

/** A computer class has a title, time and room */ public class ClassSchedule { private String title; private String days; private String startTime; private String endTime; private String room; /** Constructs a computer class with title, days, time and room */ public ClassSchedule(String classTitle, String meetingDays, String aStartTime, String anEndTime, String classRoom) { // your work here title = ...; days = ...; ... } /** Gets the title @return the title */ public String getTitle() { // your work here } /** Gets the time in the form "days start time-end time" @return the time */ public String getTime() { // your work here String time = ...; return time; } /** Gets the room @return the room */ public String getRoom() { // your work here } }

Use the following file:

ClassScheduleTester.java

public class ClassScheduleTester
{
   public static void main(String[] args)
   {
      ClassSchedule class1 = new ClassSchedule("Intro to Java","MWF","9:00", "9:50","Turing 101");
      System.out.println(class1.getTitle() +
         " meets " + class1.getTime() + " in " + class1.getRoom() );
      System.out.println("Expected: Intro to Java meets MWF 9:00-9:50 in Turing 101");
                
      ClassSchedule class2 = new ClassSchedule("Operating Systems","TT","12:30","1:45","Turing 307"); 
      System.out.println(class2.getTitle() +
         " meets " + class2.getTime() + " in " + class2.getRoom() );
      System.out.println("Expected: Operating Systems meets TT 12:30-1:45 in Turing 307");
   }
}