Page 1 of 1

method in java pls explain

Posted: Mon Jun 06, 2022 1:09 pm
by answerhappygod
Method In Java Pls Explain 1
Method In Java Pls Explain 1 (22.03 KiB) Viewed 49 times
method in java pls explain
check Time public void checkTime() checkTime This method should print the current time and battery level of the watch in the following format: 12:00:00 [Battery: 100] 09:05:07 [Battery: 70] Hint: DecimalFormat is good at this This watch has an indiglo feature and drains the battery by-10 units when it is checked. It will only print the time if the battery charge is greater than o. If the battery has no charge, do not print the time, instead print a message "Dead Battery"