@@ -0,0 +1,848 @@
+/*%0A   Programmer: Kristoffer Larson%0A   Date: March 19, 2014%0A   %0A   Description: Creates a thread, starts it, updates j%0A      and puts the thread to sleep for 1 ms. If the thread%0A      isn't put to sleep j updates faster than a thread can%0A      be created and run.%0A*/%0A%0A%0A%0Apublic class ThreadingOne implements Runnable %7B%0A   %0A   static int j = 0;%0A   %0A   public static int num() %7B%0A      return j = j + 1;%0A   %7D%0A   %0A   public void run() %7B%0A      System.out.println(%22Hello from a thread!%22 + j);%0A      %0A   %7D%0A%0A   public static void main(String args%5B%5D) throws InterruptedException %7B%0A      for (int i = 0; i %3C 10; i++) %7B%0A         (new Thread(new ThreadingOne())).start();%0A         j = num();%0A         //Thread.sleep(1); //Having a thread sleep slows it down enough to print a new int%0A      %7D%0A      System.out.println(java.lang.Thread.activeCount());%0A   %7D%0A   %0A%7D%0A

Create ThreadingOne.java