![]() |
| ||
| countdown timer program Hi, I am making a java program to make a countdown timer. User enters time,then when time is up a message is printed. How do I print the time on the same line? Please tell me how to go about it. Thanks. |
| ||
| Re: countdown timer program read documentation on System.out.println() |
| ||
| Re: countdown timer program Sir, I am new at java ,so I dont know where to look for it. I searched my notes ,but didn't find anything. Please tell me where to find it. Thanks |
| ||
| Re: countdown timer program Just use google. Type System.out.println() java, or you could also try Java IO. Also, an easy way to 'count' would be // X Thread.getThread().sleep(1000); //waits for 1 second. //If you print out right here, you can be sure that the time is extremely close to 1 second from X |
| ||
| Re: countdown timer program Quote:
|
| ||
| Re: countdown timer program Quote:
|
| All times are GMT -4. The time now is 10:52 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC