Hi friends, im out to make a ticking clock (console based).With Calendar class and Date class in java.util ,can we get the time(ie hours, minutes and seconds separately??).if we manage to get these data is it possible to show it in the console with the clock updating itself dynamically? In nutshell is it possible to make a clock like we have in our computers at the bottom right. regs Rajesh
As far as displaying it in the console is concerned, I assume you want each update to overwrite the previous one rather than be on a new line each time. If so then you need a way to manipulate the cursor position. This isn't possible in standard Java, but I believe there is a package called JCurses or JavaCurses that may do this for you.
Please do some work yourself instead of expecting that someone will explain every little detail for you - if you find out for yourself, you'll learn more.
If you don't fully understand the basics of the Java language yet (classes, interfaces, methods, loops, etc.), have a look at The Java Tutorial. [ September 29, 2005: Message edited by: Jesper de Jong ]