Is this the same question:
http://www.javaprogrammingforums.com/java-theory-questions/14758-need-some-java-basic-programming-help.html#post61664

Why have two threads?