Member Avatar for Ralphael

I want to create a digital clock in Java can any one help me out
i am having problems updating the second variable

Recommended Answers

All 3 Replies

Can you be a little more specific...? Maybe post some of your code here?

Member Avatar for Ralphael

I really havnt started any thing i am just in the thinking phase

You're gonna have to have a separate thread to keep track of the seconds. Keep in mind that the sleep(long t) doesn't guarantee to sleep exactly t ms so you're going to have to do some error checking here to remove "drift" efftects.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.