SarthakKeshari / Java-Questions-and-Solutions

This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.
MIT License
46 stars 95 forks source link

Create DigitalClock.java #424

Closed MiryamVicenteOllero closed 2 years ago

MiryamVicenteOllero commented 2 years ago

Issue Id you have worked upon -

405

Briefly explain your program logic -

It's a program that show us a digital clock starting at 00:00:00

Screenshots(Attach 2 screenshots of your own input and output) -

input

output


Checklist:

Eg - If your code follow the below guidelines. Kindly change [] to [x]

All the conditions should be fulfilled for considering your code for merging -

MiryamVicenteOllero commented 2 years ago

Okey, It's done! Thanks for the feedback! 😄

El mié, 13 oct 2021 a las 14:42, SarthakKeshari @.***>) escribió:

@.**** commented on this pull request.

@MiryamVicenteOllero https://github.com/MiryamVicenteOllero, Amazing application of if else. Appreciated. Its worth Level 5.

Just to make this code run more clean and a bit closer to real timer.

Add the following lines of code just after Thread.sleep(1000).

        System.out.print("\033[H\033[2J");
        System.out.flush();

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SarthakKeshari/Java-Questions-and-Solutions/pull/424#pullrequestreview-778517300, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV44Z7C4AGSHZMPK5TBYIETUGV5C5ANCNFSM5F5BYTLQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.