Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ClockDisplay {
- //...
- public void tick(){
- minutes.tick();
- if(minutes.getValue() == 0){
- hours.tick();
- }
- }
- public String getTimeDisplay(){
- return hours.getDisplayValue() + separator +
- minutes.getDisplayValue();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment