This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
you never started the Thread: Thread t = new Thread(); ...rest of code elided ... t.start(); System.out.println( "Joining..." ); t.join();
Joined: Jun 06, 2002
I know that ... I even said it in my question.
Joined: Jul 28, 2002
whoops, sorry. You're right. To be less vague, join was made to simply return quietly if the Thread is not started. Since you did not start the thread, it simply does nothing (but now seeing the guy who posted the source code - is that allowed in the license - it's obvious in there)