Didn't you already ask something similar? http://www.javaprogrammingforums.com/whats-wrong-my-code/41539-how-use-time.html

Why are you repeating this? And this is a Java forum, not a C++ forum....