Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

have to create a program that fits the following criteria: Design a class named Clock

 have to create a program that fits the following criteria: Design

a class named Clock. You should use your IDE for this exercise. The class containsprivate data fields for startTime and stopTime, a no argument constructor that initializes the startTimeto the current time, a method named start() that resets the startTime to the given time, a stop() methodthat sets the endTime to the given time and a getElapsedTime() method that returns the elapsed time inseconds. Create a TestClock class to construct a Clock instance and return the elapsed time. Commandline arguments should be used to send the start and end times. You should use the java.time classes.

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"