Page 1 of 1

setHour public void setHour(int hour) setHour - Sets the hour of the watch forward by a number of hours. Note: if the ho

Posted: Mon Jun 06, 2022 1:52 pm
by answerhappygod
Sethour Public Void Sethour Int Hour Sethour Sets The Hour Of The Watch Forward By A Number Of Hours Note If The Ho 1
Sethour Public Void Sethour Int Hour Sethour Sets The Hour Of The Watch Forward By A Number Of Hours Note If The Ho 1 (20.21 KiB) Viewed 20 times
in java
setHour public void setHour(int hour) setHour - Sets the hour of the watch forward by a number of hours. Note: if the hour of the watch is greater than 12, it should roll back over to 1 and only display time [1,12] (This is a 12- hour timepiece, not 24-hour military watch). e.g. if the current hour is 08:00:00 and you call setHour(6), it should now read 02:00:00 Parameters: hour - the integer value of how many hours to advance the watch Throws: java.lang. IllegalArgumentException - if the input hour is less than o