code: private static void concat(double[] target, double[] first, int firstLength, double[] second, int secondLength)
      {
          System.arraycopy(first, 0, target, 0, firstLength);
          System.arraycopy(second, 0, target, firstLength, secondLength);
      }
docs: Copy two arrays back-to-back onto the target array starting at offset 0