@@ -0,0 +1,1225 @@
+/*%0A   Programmer: Kristoffer Larson%0A   Date: March 22, 2014%0A   %0A   Description: Creating threads by extending the Thread%0A      class. This prevents extending any other class since%0A      Java only supports single extention in inheritance.%0A      %0A*/%0A%0Apublic class ThreadingTwo extends Thread %7B%0A   %0A   private int%5B%5D array = new int%5B12%5D;%0A   private int i = 0;%0A   private int j;%0A   %0A   public ThreadingTwo(int j) %7B //Used to run an instance of the thread in this class%0A      this.j = j;%0A      %0A   %7D//End constructor%0A   %0A   public void run() %7B%0A      while (i %3C 10) %7B%0A            add();%0A            subtract();%0A         %0A         if (i %3C -10) %7B%0A            System.exit(-1);%0A         %7D%0A      %7D//End while%0A      %0A      for (int k = 0; k %3C array.length; k++) %7B%0A         System.out.println(array%5Bk%5D);%0A      %7D//End for%0A   %7D//End run() method%0A   %0A   public void add() %7B%0A      array%5Bi%5D = i;%0A      i += 2;%0A   %7D//End add() method%0A   %0A   public void subtract() %7B%0A      array%5Bi%5D = j;%0A      i--;%0A   %7D%0A   %0A   public static void main(String%5B%5D args) %7B%0A      ThreadingTwo thread = new ThreadingTwo(0);%0A      ThreadingTwo threadTwo = new ThreadingTwo(1);%0A      thread.run();%0A      threadTwo.run();%0A   %7D//End main() method%0A%0A%7D//End ThreadingTwo class%0A

Create ThreadingTwo.java