Объясните пожалуйста этот кусок кода . Что делает каждая строчка, не всё до конца понял . За ранее спасибо.
public static void main(String[] args) throws InterruptedException {
      StringBuffer expectedResult = new StringBuffer();
      for (int i = 1000 - 1; i >= 0; i--) {
          expectedResult.append(i).append(" ");
      }

      initThreads();

      StringBuffer result = new StringBuffer();
      for (int i = 0; i < testArray.length; i++) {
          result.append(testArray[i]).append(" ");
      }
      System.out.println(result);
      System.out.println((result.toString()).equals(expectedResult.toString()));
  }

  public static void initThreads() throws InterruptedException {
      List<Thread> threads = new ArrayList<Thread>(threadCount);
      for (int i = 0; i < threadCount; i++) threads.add(new SortThread());
      for (Thread thread : threads) thread.start();
      for (Thread thread : threads) thread.join();
  }