Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please write a Java program that will store recurring and one-time events in a hashmap. I need the events to be read in from a
Please write a Java program that will store recurring and one-time events in a hashmap. I need the events to be read in from a .txt file.
Here are the events.
day abbreviations (SMTWRFA))
S = sunday
M = monday
T = tuesday
W = wednesday
R = thursday
F = friday
A = saturday
CS151 Lecture TR 9:00 10:15 1/26/23 5/22/23 CS146 Lecture MW 12:00 13:15 1/25/23 5/20/23 MATH39 Lecture MW 9:00 10:15 1/25/23 5/23/23 Gym MWF 14:00 16:00 1/1/23 12/31/23 Group meetings AS 17:00 22:00 1/25/23 6/1/23 Haircut 2/24/23 15:00 16:00 Bike Ride 3/6/23 12:00 15:00 Dinner 3/24/23 18:00 20:00 House sitting 2/25/23 15:00 22:00 Warriors Game 3/2/23 19:00 23:00
I woud also like a TimeInterval class that can that represent an interval of time, suitable for events (such as a meeting on a given date from 10:00 - 11:00). Provide a method to check whether two intervals overlap.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started