3. Modify Restart.action() to start the the system by reading events from a text file. Use Scanner and an appropriate regular expression.
So you will have to read each line, create an event...
Type: Posts; User: jps
3. Modify Restart.action() to start the the system by reading events from a text file. Use Scanner and an appropriate regular expression.
So you will have to read each line, create an event...
It looks like the constructor for a Bell object expects a value of type long which represents delayTime, not a number of rings.
If you need to add multiple rings (or multiple events causing rings)...
Do one thing at a time is my suggestion.
How you implement the delay between rings is:
1) a problem to handle later
2) depends on how the overall implementation is set up
I have not read all of...
Look at the example file. What does it show?
It looks like the bell event currently does not ring any bell once. That looks like a good place to start. Get it to ring the bell once, then get it to...
Getting closer. What part are you working on and where are you stuck? Be specific, that is a large amount of code to dig through and the more you provide the easier it will be for people to get...
Welcome to the forum.
What is it exactly you need help with?
If you were given some "starter code" to work with please post the unmodified version of it so we can all see the starting point, and...