Can java do a timer on command line by overwriting the time on the same line?
Posted
by javaLearner.java
on Stack Overflow
See other posts from Stack Overflow
or by javaLearner.java
Published on 2010-05-07T03:44:52Z
Indexed on
2010/05/07
4:18 UTC
Read the original article
Hit count: 153
HI I am a new java programmer (very new).
What I want to do/test is (not sure if its recommendable or doable?), we know that
System.out.println("Message");
will output the "Message" in command prompt. Is it possible to display the current time, without having to repeatly use the system.out.println()?
Name, like instead of displaying:
10:00:01
10:00:02
10:00:03
I wand to have liek this: 10:00:0X where X will continue counting
© Stack Overflow or respective owner