final ValueContainer[] valueContainers = new ValueContainer[arraySize]; if (valueContainers1 != null) { for (int i = 0; i < valueContainers1.length; i++) { valueContainers[i] = valueContainers1[i]; } } if (valueContainers2 != null) { for (int i = 0; i < valueContainers2.length; i++) { valueContainers[i + valueContainers1.length] = valueContainers2[i]; } }
    private ValueContainer[] joinValueContainers(ValueContainer[] valueContainers1,            ValueContainer[] valueContainers2) {        ValueContainer[] valueContainers = new ValueContainer[valueContainers1.length                + valueContainers2.length];        for (int i = 0; i < valueContainers1.length; i++) {            valueContainers[i] = valueContainers1[i];        }        for (int i = 0; i < valueContainers2.length; i++) {            valueContainers[i + valueContainers1.length] = valueContainers2[i];        }        return valueContainers;    }